move accel handling in front of the normal keyDown handling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67109 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2496,9 +2496,9 @@ bool wxWindowMac::IsShownOnScreen() const
|
|||||||
|
|
||||||
bool wxWindowMac::OSXHandleKeyEvent( wxKeyEvent& event )
|
bool wxWindowMac::OSXHandleKeyEvent( wxKeyEvent& event )
|
||||||
{
|
{
|
||||||
bool handled = HandleWindowEvent( event ) ;
|
bool handled = false;
|
||||||
if ( handled && event.GetSkipped() )
|
|
||||||
handled = false ;
|
// moved the ordinary key event sending AFTER the accel evaluation
|
||||||
|
|
||||||
#if wxUSE_ACCEL
|
#if wxUSE_ACCEL
|
||||||
if ( !handled && event.GetEventType() == wxEVT_KEY_DOWN)
|
if ( !handled && event.GetEventType() == wxEVT_KEY_DOWN)
|
||||||
@@ -2532,6 +2532,13 @@ bool wxWindowMac::OSXHandleKeyEvent( wxKeyEvent& event )
|
|||||||
}
|
}
|
||||||
#endif // wxUSE_ACCEL
|
#endif // wxUSE_ACCEL
|
||||||
|
|
||||||
|
if ( !handled )
|
||||||
|
{
|
||||||
|
handled = HandleWindowEvent( event ) ;
|
||||||
|
if ( handled && event.GetSkipped() )
|
||||||
|
handled = false ;
|
||||||
|
}
|
||||||
|
|
||||||
return handled ;
|
return handled ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user