Saturday, October 20, 2012

Re: keyboard shortcuts

Thanks for your anwwers.

Le jeudi 18 octobre 2012 22:21:55 UTC+1, Jens a écrit :
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.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/2dyp42tbuvAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate