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:
@@ -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() ;
|
||||
|
@@ -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 ;
|
||||
}
|
||||
|
Reference in New Issue
Block a user