Does anyone know whats going on here?

I have a KeyPressHandler and KeyDownHandler (see below) and I setup a
simple VerticalPanel to view debug output. If I press the down arrow
in IE / Safari / Chrome / Hosted Mode, I see:

K. DOWN: 40

If I press down arrow in FireFox, I see:

K.Down: 40
K.PRESS: 40 : (

If I do the open bracket character (shift + 9) in Safari / Chrome /
Hosted Mode, I see:

K.DOWN: 16
K.DOWN: 57
K.PRESS: 40 : (

and in Firefox:
K.DOWN: 16
K.DOWN: 57
K.PRESS: 40 : (

Why does Firefox give me a bracket character for the down cursor????
And why is the keycode for down cursor the same as bracket across all
browsers?

CODE:

@Override
public void onKeyPress(KeyPressEvent event) {
        AppletResources.getDebugPanel().add(new Label("K.PRESS: " +
event.getNativeEvent().getKeyCode() + " : " + event.getCharCode()));
}

@Override
public void onKeyDown(KeyDownEvent event) {
        AppletResources.getDebugPanel().add(new Label("K.DOWN: " +
event.getNativeEvent().getKeyCode()));
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to