I have an app with shortcut keys that I don't want to fire while text entry 
is going on. I'm using a FocusPanel to capture the hotkeys, but the 
KeyPressEvents are getting propagated out of text entry widgets to the 
FocusPanel that contains them. I can add a custom KeyPressHandler to each of 
them which calls event.stopPropagation(), but it seems a little inelegant 
and it would be easy to forget if I add one later.

I saw elsewhere on the group the suggestion to use a native preview handler 
& ignore the event if it came from a textarea/textbox, but this seems easier 
said than done. Anyone with experience with this, how did you solve it?

-- 
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