Programming keyboard shortcuts (hotkeys)
Hello everybody!
I need to program keyboard shortcuts (hotkeys) in my application. I have seen this feature on Google Maps, miuTunes and ÜberTwitter. A code snippet sample would be highly appreciated. |
override keyChar in your screen class:
protected boolean keyChar(char key, int status, int time) { boolean retval = false; switch (key) { case Characters.ESCAPE: //do something return true; default: retval = super.keyChar(key, status, time); } return retval; } |
Programming keyboard shortcuts (hotkeys) [Solved]
Quote:
|
All times are GMT -5. The time now is 02:10 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.