From cb89b707b87f026a472a5c589b31f321f83db06a Mon Sep 17 00:00:00 2001 From: mayunteng_1 Date: Thu, 5 Jan 2023 03:31:02 +0000 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=A4=9A=E6=A8=A1=E5=AD=90=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E3=80=91=E5=A4=9A=E6=A8=A1=E6=96=87=E6=A1=A3=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mayunteng_1 Change-Id: Ib90587405b7b53918c89fd6499c58572526cace7 --- .../reference/apis/js-apis-inputevent.md | 2 ++ .../reference/apis/js-apis-inputmonitor.md | 3 +-- .../application-dev/reference/apis/js-apis-keycode.md | 3 ++- .../application-dev/reference/apis/js-apis-keyevent.md | 6 ++++++ .../reference/apis/js-apis-mouseevent.md | 10 ++++++++++ .../reference/apis/js-apis-touchevent.md | 10 ++++++++++ 6 files changed, 31 insertions(+), 3 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-inputevent.md b/zh-cn/application-dev/reference/apis/js-apis-inputevent.md index 6ceb41d000..4a36d8191d 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-inputevent.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inputevent.md @@ -14,6 +14,8 @@ import InputEvent from '@ohos.multimodalInput.inputEvent'; ## InputEvent +输入事件。 + **系统能力**:SystemCapability.MultimodalInput.Input.Core | 名称 | 类型 | 可读 | 可写 | 说明 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-inputmonitor.md b/zh-cn/application-dev/reference/apis/js-apis-inputmonitor.md index f468d074b6..900ef473cc 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-inputmonitor.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inputmonitor.md @@ -204,9 +204,8 @@ try { inputMonitor.on("touch", touchEvent => { if (touchEvent.touches.length == 3) { // 当前有三个手指按下 return true; - } else { - return false; } + return false; }); } catch (error) { console.log(`Monitor on failed, error: ${JSON.stringify(error, [`code`, `message`])}`); diff --git a/zh-cn/application-dev/reference/apis/js-apis-keycode.md b/zh-cn/application-dev/reference/apis/js-apis-keycode.md index b2960f4315..ec2c089f1f 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-keycode.md +++ b/zh-cn/application-dev/reference/apis/js-apis-keycode.md @@ -3,7 +3,6 @@ 按键设备键值。 > **说明:** -> > 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 ## 导入模块 @@ -14,6 +13,8 @@ import {KeyCode} from '@ohos.multimodalInput.keyCode'; ## KeyCode +按键键码值。 + **系统能力**:SystemCapability.MultimodalInput.Input.Core | 名称 | 值 | 说明 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-keyevent.md b/zh-cn/application-dev/reference/apis/js-apis-keyevent.md index a58d298f58..9b5a217485 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-keyevent.md +++ b/zh-cn/application-dev/reference/apis/js-apis-keyevent.md @@ -14,6 +14,8 @@ import {Action, Key, KeyEvent} from '@ohos.multimodalInput.keyEvent'; ## Action +按键事件类型。 + **系统能力**:SystemCapability.MultimodalInput.Input.Core | 名称 | 值 | 说明 | @@ -24,6 +26,8 @@ import {Action, Key, KeyEvent} from '@ohos.multimodalInput.keyEvent'; ## Key +按键。 + **系统能力**:SystemCapability.MultimodalInput.Input.Core | 名称 | 类型 | 可读 | 可写 | 说明 | @@ -34,6 +38,8 @@ import {Action, Key, KeyEvent} from '@ohos.multimodalInput.keyEvent'; ## KeyEvent +按键事件。 + **系统能力**:SystemCapability.MultimodalInput.Input.Core | 名称 | 类型 | 可读 | 可写 | 说明 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-mouseevent.md b/zh-cn/application-dev/reference/apis/js-apis-mouseevent.md index 67b1b4b37b..074fd7095e 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-mouseevent.md +++ b/zh-cn/application-dev/reference/apis/js-apis-mouseevent.md @@ -14,6 +14,8 @@ import { Action, Button, Axis, AxisValue, MouseEvent } from '@ohos.multimodalInp ## Action +鼠标事件类型。 + **系统能力**:SystemCapability.MultimodalInput.Input.Core | 名称 | 值 | 说明 | @@ -29,6 +31,8 @@ import { Action, Button, Axis, AxisValue, MouseEvent } from '@ohos.multimodalInp ## Button +鼠标按键。 + **系统能力**:SystemCapability.MultimodalInput.Input.Core | 名称 | 值 | 说明 | @@ -44,6 +48,8 @@ import { Action, Button, Axis, AxisValue, MouseEvent } from '@ohos.multimodalInp ## Axis +鼠标轴类型。 + **系统能力**:SystemCapability.MultimodalInput.Input.Core | 名称 | 值 | 说明 | @@ -55,6 +61,8 @@ import { Action, Button, Axis, AxisValue, MouseEvent } from '@ohos.multimodalInp ## AxisValue +鼠标轴类型和轴的值。 + **系统能力**:SystemCapability.MultimodalInput.Input.Core | 名称 | 类型 | 可读 | 可写 | 说明 | @@ -65,6 +73,8 @@ import { Action, Button, Axis, AxisValue, MouseEvent } from '@ohos.multimodalInp ## MouseEvent +鼠标事件。 + **系统能力**:SystemCapability.MultimodalInput.Input.Core | 名称 | 类型 | 可读 | 可写 | 说明 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-touchevent.md b/zh-cn/application-dev/reference/apis/js-apis-touchevent.md index 55981cf86f..4bc994191c 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-touchevent.md +++ b/zh-cn/application-dev/reference/apis/js-apis-touchevent.md @@ -14,6 +14,8 @@ import {Action,ToolType,SourceType,Touch,TouchEvent} from '@ohos.multimodalInput ## Action +触屏事件类型。 + **系统能力**:SystemCapability.MultimodalInput.Input.Core | 名称 | 值 | 说明 | @@ -25,6 +27,8 @@ import {Action,ToolType,SourceType,Touch,TouchEvent} from '@ohos.multimodalInput ## ToolType +操作触屏的工具类型。 + **系统能力**:SystemCapability.MultimodalInput.Input.Core | 名称 | 值 | 说明 | @@ -40,6 +44,8 @@ import {Action,ToolType,SourceType,Touch,TouchEvent} from '@ohos.multimodalInput ## SourceType +触摸来源的设备类型。 + **系统能力**:SystemCapability.MultimodalInput.Input.Core | 名称 | 值 | 说明 | @@ -50,6 +56,8 @@ import {Action,ToolType,SourceType,Touch,TouchEvent} from '@ohos.multimodalInput ## Touch +触摸点信息。 + **系统能力**:SystemCapability.MultimodalInput.Input.Core | 名称 | 类型 | 可读 | 可写 | 说明 | @@ -75,6 +83,8 @@ import {Action,ToolType,SourceType,Touch,TouchEvent} from '@ohos.multimodalInput ## TouchEvent +触屏事件。 + **系统能力**:SystemCapability.MultimodalInput.Input.Core | 名称 | 类型 | 可读 | 可写 | 说明 | -- GitLab