I use a KeyboardListener to check the typed character. I've seen this
example in the book "GWT in Action":
public void onKeyUp(Widget sender, char keyCode, int modifiers) {
if (!Character.isDigit(keyCode)) {
((TextBox)sender).cancelKey();
return;
}
}
In IE it works but in FF the Listeners is listen to the control-,
delete- and backspace- key too. I can't delete an character because
these keys are no digits.
How can I check if the keys are a control, delete or the backspace?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---