Skip to content

Commit

Permalink
handle cmd-q for macos as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Squall-Leonhart authored Jan 25, 2024
1 parent 6fa01fa commit c2d340a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit c2d340a

Please sign in to comment.