硬件键盘事件 [英] Hardware Keyboard Event

查看:23
本文介绍了硬件键盘事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能告诉我如何检测何时使用硬件键盘以及何时使用软键盘?或者是否有任何事件表明显示了硬件键盘.

Can anyone tell me how to detect when the hardware keyboard is used and when the soft-key-pad is used? Or is there any event which tells that the hardware keypad is shown.

推荐答案

从 Mango 开始,现在可以完成硬件键盘检测 - 参见:

As of Mango, the hardware keyboard detection can now be done - see:

IsKeyboardPresent - http://msdn.microsoft.com/en-us/library/microsoft.phone.info.devicestatus.iskeyboardpresent%28v=VS.92%29.aspx

IsKeyboardPresent - http://msdn.microsoft.com/en-us/library/microsoft.phone.info.devicestatus.iskeyboardpresent%28v=VS.92%29.aspx

KeyboardDeployedChanged - http://msdn.microsoft.com/en-us/library/microsoft.phone.info.devicestatus.keyboarddeployedchanged(v=VS.92).aspx

KeyboardDeployedChanged - http://msdn.microsoft.com/en-us/library/microsoft.phone.info.devicestatus.keyboarddeployedchanged(v=VS.92).aspx

来自 有没有办法检测手机上是否有硬件键盘?

这篇关于硬件键盘事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆