[英]blackberry webworks: onHardwareKey keyUp event?
Is there a possibility to capture the key up event of a hardware key on blackberry-webworks? 是否有可能在blackberry-webworks上捕获硬件密钥的关键事件?
The blackberry.system.event.onHardwareKey
is fired when pressing the key down, but i want a value to increase as long as I'm pressing the key, so i need to get the key up event to stop increasing the value... 按下键时会触发blackberry.system.event.onHardwareKey
,但只要我按下键,我想要一个值增加,所以我需要获取键事件以停止增加值...
Any help would be appreciated, thanks in advance! 任何帮助将不胜感激,提前谢谢!
We've found the Kitchen Sink to be a great resource for looking at things WebWorks can do http://blackberry.github.com/WebWorks-Samples/kitchenSink/ 我们发现Kitchen Sink是查看WebWorks可以做的事情的一个很好的资源http://blackberry.github.com/WebWorks-Samples/kitchenSink/
Take a look at the User Input - Respond to physical user input : Keyboard Events example and see if it helps: http://blackberry.github.com/WebWorks-Samples/kitchenSink/html/browser/keyevents.html 看看用户输入 - 响应物理用户输入:键盘事件示例,看看它是否有帮助: http : //blackberry.github.com/WebWorks-Samples/kitchenSink/html/browser/keyevents.html
NOTE: Use Firebug/Chromes Developer Tools to view the keyevents.js file doing all the work. 注意:使用Firebug / Chromes开发人员工具查看执行所有工作的keyevents.js文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.