import javafx.application.Application; import javafx.scene.input.KeyCode; import javafx.scene.input.KeyCodeCombination; import javafx.scene.input.KeyCodeCombinationBuilder; import javafx.scene.input.KeyCombination; import javafx.stage.Stage; public class Bug2 extends Application { public static void main(String[] args) { launch(args); } @Override public void start(Stage stage) { new KeyCodeCombination(KeyCode.INSERT, KeyCombination.CONTROL_DOWN); KeyCodeCombinationBuilder.create() .alt(KeyCombination.ModifierValue.UP) .meta(KeyCombination.ModifierValue.UP) .shift(KeyCombination.ModifierValue.UP) .shortcut(KeyCombination.ModifierValue.UP) .control(KeyCombination.ModifierValue.DOWN) .code(KeyCode.DELETE) .build(); KeyCodeCombinationBuilder.create() .control(KeyCombination.ModifierValue.DOWN) .code(KeyCode.DELETE) .build(); System.exit(0); } }