List of usage examples for com.vaadin.ui Window addShortcutListener
public Registration addShortcutListener(ShortcutListener shortcut)
From source file:fr.amapj.view.engine.grid.ShortCutManager.java
License:Open Source License
public void addShorcut(Window w) { w.addShortcutListener(new ShortcutListenerImpl(KeyCode.ENTER, Key.ENTER)); w.addShortcutListener(new ShortcutListenerImpl(107, Key.PLUS)); w.addShortcutListener(new ShortcutListenerImpl(KeyCode.ARROW_RIGHT, Key.RIGHT)); w.addShortcutListener(new ShortcutListenerImpl(KeyCode.ARROW_LEFT, Key.LEFT)); w.addShortcutListener(new ShortcutListenerImpl(KeyCode.ARROW_UP, Key.UP)); w.addShortcutListener(new ShortcutListenerImpl(KeyCode.ARROW_DOWN, Key.DOWN)); }