make altf4/cmd-q propogate to the parent after MainWindow::CreateCanvas has set focus #1035

Merged
Squall-Leonhart merged 2 commits from makealtf4work into main 2024-02-18 01:52:11 -03:00
Showing only changes of commit c2d340ae28 - Show all commits

View file

@ -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);
}