Skip to content

Commit

Permalink
consume alt key
Browse files Browse the repository at this point in the history
  • Loading branch information
firm1 committed Feb 4, 2017
1 parent e02646a commit 75f20bc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/com/zestedesavoir/zestwriter/MainApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import javafx.collections.FXCollections;
import javafx.collections.ObservableMap;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
Expand Down Expand Up @@ -246,6 +247,10 @@ private void initRootLayout() {
menuController.setMainApp(this);

scene = new Scene(rootLayout);
scene.addEventHandler(KeyEvent.KEY_PRESSED, event -> {
if(event.isAltDown())
event.consume();
});
primaryStage.setScene(scene);
primaryStage.show();
loadCombinason();
Expand Down

0 comments on commit 75f20bc

Please sign in to comment.