Package javafx.scene.input

Examples of javafx.scene.input.KeyCodeCombination.match()


    final StackPane masterStackPane = new StackPane();
    masterStackPane.setOnKeyReleased(new EventHandler<javafx.scene.input.KeyEvent>() {
      @Override
      public void handle(javafx.scene.input.KeyEvent event) {
        KeyCodeCombination keyCombination = new KeyCodeCombination(KeyCode.ENTER, KeyCombination.SHORTCUT_DOWN);
        if (keyCombination.match(event)){
          refresh();
        }
      }
    });
   
View Full Code Here


      @Override
      public void handle(KeyEvent event)
      {
        // check for only tab key
        if (combo.match(event))
        {
          saveFile();
          event.consume();
        }
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.