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

@@ -3712,7 +3712,7 @@ bool wxWidgetCocoaImpl::DoHandleKeyNavigation(const wxKeyEvent &event)
/* CTRL-TAB changes the (parent) window, i.e. switch notebook page */
new_event.SetWindowChange( event.ControlDown() );
new_event.SetCurrentFocus( focus );
handled = iter->HandleWindowEvent( new_event ) && !new_event.GetSkipped();
handled = iter->HandleWindowEvent( new_event );
}
iter = iter->GetParent() ;

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