Hi, I am building a GWt app which has the following layout:
- FlowPanel * Menu Bar * Grid (2,x) I want to add keyboard navigation to the Grid (UP, DOWN & DELETE) I call the following code in the constructor of my Widget: // EVENTS Event.addNativePreviewHandler(new NativePreviewHandler() { @Override public void onPreviewNativeEvent(final NativePreviewEvent event) { // Key pressed if (event.getTypeInt() == Event.ONKEYDOWN) { // Update Grid status (up, down, delete) } } }); When I press UP & DOWN keys, no problem I get the events. The problem is that navigation in the MenuBar also fires key events which are catched by this code. So when I select the MenuBar I have a double navigation: in my MenuBar and in my Grid The questions are : - How can I prevent my code to catch events which target elements like MenuBar & TextField ? - Is there another way to deal with my problem ? Thanks Chris -- 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=.