From f722ee0d05ade1f90b7bc5e51d68b3aed4d65652 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tomas=20Wenstr=C3=B6m?= Date: Sun, 23 Apr 2017 15:55:01 +0200 Subject: [PATCH] Added another key to exit the GUI - 'q' --- src/kaka/cakelight/GuiTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kaka/cakelight/GuiTest.java b/src/kaka/cakelight/GuiTest.java index a8da351..5aaba2f 100644 --- a/src/kaka/cakelight/GuiTest.java +++ b/src/kaka/cakelight/GuiTest.java @@ -37,7 +37,7 @@ public class GuiTest extends Application { Scene scene = new Scene(root); scene.setOnKeyPressed(keyEvent -> { - if (keyEvent.getCode() == KeyCode.ESCAPE) { + if (keyEvent.getCode() == KeyCode.ESCAPE || keyEvent.getCode() == KeyCode.Q) { stage.close(); cakelight.cleanup(); } -- 2.11.0