Today While extending the TextBox, I encountered very strange
behaviour.
All alphabets returned by event.getNativeKeyCode() are upper case.
Here is sample program:
public class TextBox extends com.google.gwt.user.client.ui.TextBox{
public TextBox() {
super();
addKeyDownHandler(new KeyDownHandler(){
public void onKeyDown(KeyDownEvent event) {
int key = event.getNativeKeyCode();
System.out.println("key: " + (char)key);
}
}
}
}
Enter characters in lower case, it will print upper case to the
console. I thought of checking with the group before raising it as an
issue. Any idea on what's going on here?
Thanks,
Rakesh Wagh
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---