I have a panel that has a textbox and a button. If the Tab-key is
pressed on the Button, the focus should be set to the textfield
instead of going to all other elements on the page. So i have
following keyboardListener on the Button:
public void onKeyDown(final Widget sender, final char keyCode, final
int modifiers)
{
if (keyCode == KEY_TAB) {
myTextbox.setFocus(true);
}
The problem is: after setting focus to the textfield, it(textbox)
receives original Tab-Event and the focus goes to the Button(next
Element). So the question is - how can i prevent the origianl event
from executing?
The only solution i came out with so far, is to set focus with a delay
(in a Timer). Any ideas of a better one?
Thx in advance,
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---