提交 2533b1f5 编写于 作者: H hungry_feiwei

Add details

Signed-off-by: Nhungry_feiwei <huxiao31@huawei.com>
上级 62aead2b
......@@ -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;
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册