From: Stefan Csomor Date: Sun, 28 Aug 2011 06:54:18 +0000 (+0000) Subject: routing keys like ESC etc, fixes #13429 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/99d6720118134b3717fc314ac164eb5b30352785 routing keys like ESC etc, fixes #13429 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68936 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/cocoa/window.mm b/src/osx/cocoa/window.mm index ce90d2f800..76fd98719d 100644 --- a/src/osx/cocoa/window.mm +++ b/src/osx/cocoa/window.mm @@ -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; } }