Use IsTopNavigationDomain() in accelerator handling code in all ports

This is more correct than IsTopLevel() as accelerators shouldn't traverse the
"navigation domain" boundaries, by definition, and, even more importantly in
practice, some TLWs shouldn't stop the accelerators propagation, see the next
commit.

See #16870.
This commit is contained in:
Kinaou Herve
2016-01-30 18:35:32 +01:00
committed by Vadim Zeitlin
parent 11f6ecce6b
commit 8034e35391
3 changed files with 4 additions and 4 deletions

View File

@@ -2761,7 +2761,7 @@ bool wxWindowMac::OSXHandleKeyEvent( wxKeyEvent& event )
break;
}
if (ancestor->IsTopLevel())
if (ancestor->IsTopNavigationDomain())
break;
ancestor = ancestor->GetParent();