escape on the menu quit the game
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c7fe7853b4
commit
03beebaeaf
@ -56,6 +56,13 @@ public class Controller extends Application {
|
||||
}
|
||||
});
|
||||
}
|
||||
else if(root instanceof MenuAccueil){
|
||||
scene.setOnKeyPressed(event ->{
|
||||
if(event.getCode()==KeyCode.ESCAPE){
|
||||
stage.close();
|
||||
}
|
||||
});
|
||||
}
|
||||
stage.setScene(scene);
|
||||
|
||||
stage.setFullScreen(true);
|
||||
|
Loading…
Reference in New Issue
Block a user