]> git.saurik.com Git - wxWidgets.git/commitdiff
fixes #12867
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 2 Jun 2011 08:36:57 +0000 (08:36 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 2 Jun 2011 08:36:57 +0000 (08:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67842 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/window.mm

index 9bbcb2146b668145e7aa2de5bb64e793db0afe9e..ccea61277c0c5ba0ca777b36d1767469a2ffa5cc 100644 (file)
@@ -2095,9 +2095,9 @@ bool wxWidgetCocoaImpl::DoHandleKeyEvent(NSEvent *event)
     // this will fire higher level events, like insertText, to help
     // us handle EVT_CHAR, etc.
 
-    if ( IsUserPane() && [event type] == NSKeyDown)
+    if ( !result )
     {
-        if ( !result )
+        if ( IsUserPane() && [event type] == NSKeyDown)
         {
             if ( wxevent.GetKeyCode() < WXK_SPACE || wxevent.GetKeyCode() == WXK_DELETE || wxevent.GetKeyCode() >= WXK_START )
             {