From 2533b1f5bf80498ffcf15a0ffebce488b6795eb0 Mon Sep 17 00:00:00 2001 From: hungry_feiwei Date: Mon, 30 May 2022 16:28:23 +0800 Subject: [PATCH] Add details Signed-off-by: hungry_feiwei --- zh-cn/application-dev/reference/apis/js-apis-inputdevice.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-inputdevice.md b/zh-cn/application-dev/reference/apis/js-apis-inputdevice.md index f4763d8ff9..f392cc2852 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-inputdevice.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inputdevice.md @@ -39,9 +39,10 @@ inputDevice.on("change", (data)=>{ inputDevice.getKeyboardType(data.deviceId, (ret) => { console.log("The keyboard type of the device is: " + ret); if (ret == 2 && data.type == 'add') { - // 热插的是键盘。 + // 监听物理键盘已连接。 isPhysicalKeyboardExist = true; } else if (ret == 2 && data.type == 'remove') { + // 监听物理键盘已duan。 isPhysicalKeyboardExist = false; } }); -- GitLab