passwordInput.addKeyboardListener(new KeyboardListenerAdapter() { public void onKeyPress(Widget sender, char keyCode, int modifiers) { // Check for Enter key if ((keyCode == 13) && (modifiers == 0)) { attemptLogin(); } } });
This notebook is a collection of code snippets and technical "how to" instructions.
Search This Blog
GWT: keyboard listener
by: Zainab Aziz
It is use friendly to add keyboard listeners to UI buttons, below is the how to:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment