I'd be interested to know this as well. Something like this isn't
possible with a click handler, but perhaps with a keypress handler?
On Jun 8, 4:54 pm, Raziel raziel...@gmail.com wrote:
What's the best way to add an event handler (for example for keyboard
events) to the entire document?
I need something more general than the FocusPanel; specially because
I cannot attach a FocusPanel to my application's body.
I've seen some solutions sinking events and using
addNativePreviewHandler but it seems kinda overly complicated for
something that should probably be no more than a line of code. Then
there's also warnings like Please note that nondeterministic behavior
will result if more than one GWT application registers preview
handlers. See issue 3892 for details. that tell me I should be extra
careful with this.
Thanks
--
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.