From c2d340ae287e08e2344198c09f923700dbb0fda3 Mon Sep 17 00:00:00 2001 From: Squall Leonhart Date: Fri, 26 Jan 2024 07:16:36 +1100 Subject: [PATCH] handle cmd-q for macos as well --- src/gui/MainWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index 7d280a6c3..5680eec4a 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -1482,7 +1482,8 @@ void MainWindow::OnKeyUp(wxKeyEvent& event) void MainWindow::OnKeyDown(wxKeyEvent& event) { - if (event.AltDown() && event.GetKeyCode() == WXK_F4) + if ((event.AltDown() && event.GetKeyCode() == WXK_F4) || + (event.CmdDown() && event.GetKeyCode() == 'Q')) { Close(true); }