pressed Control F7 with JavaFX - Java JavaFX

Java examples for JavaFX:Key Event

Description

pressed Control F7 with JavaFX

Demo Code


//package com.java2s;
import javafx.scene.input.KeyCode;
import javafx.scene.input.KeyEvent;

public class Main {
    public static boolean pressedControlF4(KeyEvent event) {
        return event.isControlDown() && event.getCode() == KeyCode.F4;
    }/*from w w  w  .  jav a 2 s  .  c o  m*/
}

Related Tutorials