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 e5f61c963a42b5d54ab860dd724e9e0111dfef09..393af7dc4883b8c589a9b0f54eb576f28b7d8e23 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-inputeventclient.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inputeventclient.md @@ -35,7 +35,7 @@ injectEvent({KeyEvent: KeyEvent}): void ```js try { - let backKeyDown = { + let backKeyDown: inputEventClient.KeyEvent = { isPressed: true, keyCode: 2, keyDownDuration: 0, @@ -43,7 +43,7 @@ try { } inputEventClient.injectEvent({ KeyEvent: backKeyDown }); - let backKeyUp = { + let backKeyUp: inputEventClient.KeyEvent = { isPressed: false, keyCode: 2, keyDownDuration: 0,