]> git.saurik.com Git - wxWidgets.git/commitdiff
move accel handling in front of the normal keyDown handling
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 2 Mar 2011 16:21:24 +0000 (16:21 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 2 Mar 2011 16:21:24 +0000 (16:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67109 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/window_osx.cpp

index 63ea791e8c69c6ee0bd2b162e9c3a352f421212c..a7f6a9316050df0af6f5f3f60f84eb555ed868f5 100644 (file)
@@ -2496,9 +2496,9 @@ bool wxWindowMac::IsShownOnScreen() const
 
 bool wxWindowMac::OSXHandleKeyEvent( wxKeyEvent& event )
 {
-    bool handled = HandleWindowEvent( event ) ;
-    if ( handled && event.GetSkipped() )
-        handled = false ;
+    bool handled = false;
+    
+    // moved the ordinary key event sending AFTER the accel evaluation
 
 #if wxUSE_ACCEL
     if ( !handled && event.GetEventType() == wxEVT_KEY_DOWN)
@@ -2531,6 +2531,13 @@ bool wxWindowMac::OSXHandleKeyEvent( wxKeyEvent& event )
         }
     }
 #endif // wxUSE_ACCEL
+    
+    if ( !handled )
+    {
+        handled = HandleWindowEvent( event ) ;
+        if ( handled && event.GetSkipped() )
+            handled = false ;
+    }
 
     return handled ;
 }