Open GoogleCodeExporter opened 9 years ago
keycodes can be captured using the FocusPanel which encapsulates all other
widgets (see
http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideA11y.html#kbdA11
y)
final FocusPanel focus = new FocusPanel(new Initializer());
focus.addKeyDownHandler(new KeyDownHandler() {
@Override
public void onKeyDown(KeyDownEvent event) {
if (event.isShiftKeyDown() && event.getNativeKeyCode() == 16) { // == ?) {
...
}
}
});
focus.setHeight("100%");
RootLayoutPanel.get().add(focus);
only problem with that is a layout issue. the FocusPanel prevents that the
whole page is visible. only the first ~30px from above are visible.
Original comment by ingo.jae...@gmail.com
on 14 Sep 2010 at 1:24
Original comment by ingo.jae...@gmail.com
on 16 Sep 2010 at 9:16
Original issue reported on code.google.com by
ingo.jae...@gmail.com
on 12 Sep 2010 at 1:12