]> git.saurik.com Git - wxWidgets.git/commitdiff
routing keys like ESC etc, fixes #13429
authorStefan Csomor <csomor@advancedconcepts.ch>
Sun, 28 Aug 2011 06:54:18 +0000 (06:54 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sun, 28 Aug 2011 06:54:18 +0000 (06:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68936 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/window.mm

index ce90d2f800b84960145d752fcc1479709599a800..76fd98719de5d805022e44a7d7b1ee375c8bce1c 100644 (file)
@@ -200,6 +200,8 @@ long wxOSXTranslateCocoaKey( NSEvent* event, int eventType )
                         int intchar = [s characterAtIndex: 0];
                         if ( intchar >= NSF1FunctionKey && intchar <= NSF24FunctionKey )
                             retval = WXK_F1 + (intchar - NSF1FunctionKey );
+                        else if ( intchar > 0 && intchar < 32 )
+                            retval = intchar;
                         break;
                 }
             }