make altf4/cmd-q propogate to the parent after MainWindow::CreateCanvas has set focus #1035
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue