File tree 2 files changed +7
-1
lines changed
src/main/java/tbooop/view
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ public void handleInput(final Optional<Keybinds> keybind) {
85
85
case SHOOT_LEFT -> sendCommand (new ShootCommand (CardinalDirection .LEFT ));
86
86
case SHOOT_RIGHT -> sendCommand (new ShootCommand (CardinalDirection .RIGHT ));
87
87
case FULLSCREEN -> view .getStage ().setFullScreen (!view .getStage ().isFullScreen ());
88
+ case EXIT_FULLSCREEN -> resizeWindow (false );
88
89
case ZOOM_IN -> resizeWindow (true );
89
90
case ZOOM_OUT -> resizeWindow (false );
90
91
default -> {
Original file line number Diff line number Diff line change @@ -61,7 +61,12 @@ public enum Keybinds {
61
61
/**
62
62
* Keybind for toggling fullscreen mode.
63
63
*/
64
- FULLSCREEN (KeyCode .F11 );
64
+ FULLSCREEN (KeyCode .F11 ),
65
+
66
+ /**
67
+ * Keybind for exiting fullscreen mode.
68
+ */
69
+ EXIT_FULLSCREEN (KeyCode .ESCAPE );
65
70
66
71
private final KeyCode keyCode ;
67
72
You can’t perform that action at this time.
0 commit comments