Remove unnecessary checks of wxEvent::GetSkipped()

HandleWindowEvent() already returns false if the event handler skipped
the event, there is no need to test for it explicitly.

No real changes.
This commit is contained in:
Vadim Zeitlin
2021-01-24 20:53:30 +01:00
parent 8e26b8d54e
commit 5f30f79bc8
2 changed files with 1 additions and 5 deletions

View File

@@ -2605,11 +2605,7 @@ bool wxWindowMac::OSXHandleKeyEvent( wxKeyEvent& event )
#endif // wxUSE_ACCEL
if ( !handled )
{
handled = HandleWindowEvent( event ) ;
if ( handled && event.GetSkipped() )
handled = false ;
}
return handled ;
}