See http://stackoverflow.com/questions/1413378/how-to-make-javascript-shortcut-in-all-browser and http://stackoverflow.com/questions/1413378/how-to-make-javascript-shortcut-in-all-browser
2011/11/28 star <vinod.d...@gmail.com> > I'm trying to trap key downs in GWT, and I've tried both > addKeyDownHandler and onBrowserEvent. The problem is that they work as > long as the appropriate widget had the focus, but it stops working > when something else has the focus. I could add the code to every > single widget, but that seems crazy. I also tried forcing one single > widget to always have the focus, but that causes other problems with > things like TextBoxes (which need the focus for typing). > > Is there just a simple, high-level way to trigger some code when a key > is pressed in GWT, regardless of which widget has the focus? > > -- > 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+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.