From 9903e7245999e4dfcdecb54d691f786206571bcc Mon Sep 17 00:00:00 2001 From: mayunteng_1 Date: Wed, 4 Jan 2023 09:52:28 +0000 Subject: [PATCH] =?UTF-8?q?fixed=2015c770f=20from=20https://gitee.com/mayu?= =?UTF-8?q?nteng=5F1/docs=5Fzz/pulls/13209=20=E5=A4=9A=E6=A8=A1=E8=B5=84?= =?UTF-8?q?=E6=96=99=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mayunteng_1 Change-Id: I1f93d5bf97c75dd71b30044b1ec79e4ace0bf809 --- .../reference/apis/js-apis-inputevent.md | 2 ++ .../reference/apis/js-apis-inputmonitor.md | 3 +-- .../application-dev/reference/apis/js-apis-keycode.md | 2 ++ .../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(+), 2 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 b2be1555f1..a9764ba04b 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-inputevent.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inputevent.md @@ -13,6 +13,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 f8103076c4..ec2c089f1f 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-keycode.md +++ b/zh-cn/application-dev/reference/apis/js-apis-keycode.md @@ -13,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 63e7d21f30..b3fd057308 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-mouseevent.md +++ b/zh-cn/application-dev/reference/apis/js-apis-mouseevent.md @@ -13,6 +13,8 @@ import { Action, Button, Axis, AxisValue, MouseEvent } from '@ohos.multimodalInp ## Action +鼠标事件类型。 + **系统能力**:SystemCapability.MultimodalInput.Input.Core | 名称 | 值 | 说明 | @@ -28,6 +30,8 @@ import { Action, Button, Axis, AxisValue, MouseEvent } from '@ohos.multimodalInp ## Button +鼠标按键。 + **系统能力**:SystemCapability.MultimodalInput.Input.Core | 名称 | 值 | 说明 | @@ -43,6 +47,8 @@ import { Action, Button, Axis, AxisValue, MouseEvent } from '@ohos.multimodalInp ## Axis +鼠标轴类型。 + **系统能力**:SystemCapability.MultimodalInput.Input.Core | 名称 | 值 | 说明 | @@ -54,6 +60,8 @@ import { Action, Button, Axis, AxisValue, MouseEvent } from '@ohos.multimodalInp ## AxisValue +鼠标轴类型和轴的值。 + **系统能力**:SystemCapability.MultimodalInput.Input.Core | 名称 | 类型 | 可读 | 可写 | 说明 | @@ -64,6 +72,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