如何让黑莓场preSS事件 [英] how to get a field press event in blackberry
问题描述
如何在黑莓得到一个场preSS事件。
how to get a field press event in blackberry。
我写一个组件扩展Field类,想获得preSS事件(preSS下跌仍然没有preSS上)。
I write a component extends Field class , want to get a press event( press down still not press up ) .
请帮我。
推荐答案
您可以覆盖此方法:
protected boolean keyDown(int keycode, int time)
关于密钥高达presses,有一个 KEYUP
这是你应该重写来执行操作时,按键被释放,而不是$的方法P $ pssed (你可以preSS不放,而动作不正常被辞退,直到发布)。但是,操作系统不关键了事件的回调,除非它被明确告知您的应用程序的话,出于性能的考虑。
About the key up presses, there's a keyUp
which is the method you should override to perform an action when the key is released instead of pressed (you can press and hold, and the action doesn't normally get fired until released). However, the OS doesn't callback on key up events unless it is explicitly told to do so by your app, for performance reasons.
这篇关于如何让黑莓场preSS事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!