|<< Back to previous view|
[LWUIT-429] Listen to soft keys on dialog/form Created: 13/Apr/11 Updated: 27/Apr/11 Resolved: 17/Apr/11
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
|Tags:||LWUIT Form soft keys|
|Participants:||tempusername and vprise|
it is impossible to use the addKeyListener to detect soft key presses on dialogs/forms
(sorry for the looooooooooooooong explanation)
|Comment by vprise [ 17/Apr/11 12:16 AM ]|
I'm marking this as fixed since I changed the behavior of commandsAsButtons to check the softbuttons internally and perform the command when a physical softbutton is pressed.
We have event.consume() the approach of returning false from a method is only practical for simpler API's that don't rely on the observer pattern. Even in this case its a problem since people need to be familiar with the call chain of event dispatch.
We don't expose softbuttons since we don't want people to "hack" them, they are a problematic none-portable concept. If you really want to get access to them you should replace the menu bar (which we now allow).
|Comment by tempusername [ 27/Apr/11 05:37 AM ]|
Was this change committed? i updated my src two days ago and i dont think its working.
|Comment by vprise [ 27/Apr/11 07:54 AM ]|
Yes: Dialog.java lines 919-935