I am working on an application which needs control of the keyboard so the user can enter control-keys such as control-j and control-w.
In order to be able to stop the browser from interpreting keys like backspace, I used Event.addNativePreviewHandler() To redirect all key up, key down, and keypress events to my handler. I use NativeEvent.preventDefault() and NativePreviewEvent.consume() to keep the event from being passed on. In general, I followed the example from the gwt doc pages: http://code.google.com/webtoolkit/doc/latest/DevGuideUiDom.html Now keys like backspace and tab are successfully redirected to my handler, and the browser does not interpret them. However, control keys such as Control-J, Control-W, Control-R still are interpreted by the browser instead of my handler. Is it possible to make a GWT app which can capture these also? -- 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.
