Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    FormItem: Hotkey, shortcut

    Hi,
    can someone tell me.
    how can I perform an action when I on FormItem "ctrl + e" press.

    thx.

    #2
    Code:
    TextItem t = new TextItem();
    t.addKeyPressHandler(new KeyPressHandler() {
    	@Override
    	public void onKeyPress(KeyPressEvent event) {
    		if (EventHandler.ctrlKeyDown()) {
    			if (event.getKeyName().equals("E")) {
    				// DO WHATEVER
    			}
    		}
    	}
    });

    Comment

    Working...
    X