On 7 nov, 08:02, jhpark <[EMAIL PROTECTED]> wrote:
>                         public boolean onEventPreview(Event event) {
>                                 boolean propagate = true;
>
>                                 int type = DOM.eventGetType(event);
>                                 if (type == Event.ONKEYDOWN )  {
>                                         int keyCode = 
> DOM.eventGetKeyCode(event);
>                                         switch(keyCode) {
>                                         case TrackerKeyCode.CODE_F1:
>                                                 showHelp();
>                                                 propagate = false;
>                                                 break;
>                                         }
>                                 }
>                                 if ( !propagate) {
>                                         DOM.eventPreventDefault(event);
>                                 }
>                                 return propagate;

You're cancelling the keydown, but how about the keyup? (and maybe
keypress, who knows?)
--~--~---------~--~----~------------~-------~--~----~
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