Re: keyboard shortcuts

224 views
Skip to first unread message

Jens

unread,
Oct 18, 2012, 5:21:55 PM10/18/12
to google-we...@googlegroups.com
You can globally listen for all browser events by using Event.addNativePreviewHandler(). Inside the handler you can globally check for shortcut keys on keydown / keyup events. 

But be aware that there are inconsistencies between browsers for the return values of NativeEvent.getKeyCode() and NativeEvent.getCharCode() for keyup/keydown/keypress events. GWT does not handle these inconsistencies between browsers because it seems to be quite complex to do it right. 

-- J.

vanessa vanessa

unread,
Oct 20, 2012, 9:12:13 AM10/20/12
to google-we...@googlegroups.com
Thanks for your anwwers.
Reply all
Reply to author
Forward
0 new messages