I want to catch certain keypress events that get caught no matter what
widget is focused.

I have:

public class MainController {
  public void onModuleLoad()
  {
    RootLayoutPanel.get().add(new MainView());
  }
}

public class MainView extends Composite implements
HasKeyPressHandlers, KeyPressHandler {
  public MainView() {
    this.addKeyPressHandler(this);
    addManyWidgets();
  }
  void onKeyPress(...) { ... }
  HandlerResitration addKeyPressHandler(...) {  ... }
}

But the events get only caught when the focus is in a widget in
mainview and are NOT caught when I just click anywhere (thats not a
focusable widget) in the mainview.

-- 
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.

Reply via email to