Fix regression with MDI children accelerators
Since the changes of 8034e35391
(see #16870)
accelerators, including the standard ones such as Ctrl-F4 under MSW, didn't
work any longer inside the MDI children.
Fix this by extending IsTopNavigationDomain() to allow for checking whether
the given window should stop propagation of all keyboard events, as wxTLW
does, or only TAB navigation ones as wxMDIChildFrame and wxAuiFloatingFrame
do.
This commit is contained in:
@@ -2662,7 +2662,7 @@ bool wxWindowMac::OSXHandleKeyEvent( wxKeyEvent& event )
|
||||
break;
|
||||
}
|
||||
|
||||
if (ancestor->IsTopNavigationDomain())
|
||||
if (ancestor->IsTopNavigationDomain(wxWindow::Navigation_Accel))
|
||||
break;
|
||||
|
||||
ancestor = ancestor->GetParent();
|
||||
|
Reference in New Issue
Block a user