From 99d6720118134b3717fc314ac164eb5b30352785 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sun, 28 Aug 2011 06:54:18 +0000 Subject: [PATCH] routing keys like ESC etc, fixes #13429 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68936 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/cocoa/window.mm | 2 ++ 1 file changed, 2 insertions(+) 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; } } -- 2.45.2