From aa6a5e6495ff136807fab6b75106048b08e9b83e Mon Sep 17 00:00:00 2001 From: PingPing2023 Date: Wed, 6 Sep 2023 07:33:15 +0000 Subject: [PATCH] update zh-cn/application-dev/reference/apis/js-apis-inputeventclient.md. Signed-off-by: PingPing2023 --- .../reference/apis/js-apis-inputeventclient.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-inputeventclient.md b/zh-cn/application-dev/reference/apis/js-apis-inputeventclient.md index 788500960d..fe12382dce 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-inputeventclient.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inputeventclient.md @@ -32,7 +32,7 @@ injectEvent({KeyEvent: KeyEvent}): void ```js try { - let backKeyDown = { + let backKeyDown: inputEventClient.KeyEvent = { isPressed: true, keyCode: 2, keyDownDuration: 0, @@ -40,7 +40,7 @@ try { } inputEventClient.injectEvent({ KeyEvent: backKeyDown }); - let backKeyUp = { + let backKeyUp: inputEventClient.KeyEvent = { isPressed: false, keyCode: 2, keyDownDuration: 0, -- GitLab