onKeyDown getting incorrect keyCode
I've got a textbox that I only want positive floats in. So pretty much
I just want to allow digits and a '.'. I have my class implement the
KeyboardListener inteface and add the addkeyboardListener(this) to the
textbox. I then implement onKeyDown, onKeyPress and onKeyUp with the
parameters Widget sender, char keyCode, int modifiers. When I debug
the code and break inside onKeyDown, after pressing the . in the
number pad I get keyCode = n, then if i press the . in the main
keyboard area I get keycode = 3/4. When I press the 1 in the number
pad I get a, 2 = b, 3 = c etc... Can anyone help me figure this out. I
am using gwt 2.1.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home