]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix comparison operator for functions keys (fixes #10547).
authorKevin Ollivier <kevino@theolliviers.com>
Thu, 5 Mar 2009 05:23:25 +0000 (05:23 +0000)
committerKevin Ollivier <kevino@theolliviers.com>
Thu, 5 Mar 2009 05:23:25 +0000 (05:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/window.mm

index b5a0f099e5e35c6ae6947a6469b17aab8a0d2f7f..e28d4fdb7684600d631815a67e64e0ceac7ae1ea 100644 (file)
@@ -134,8 +134,8 @@ long wxOSXTranslateCocoaKey( NSEvent* event )
                     retval = WXK_HELP;
                     break;
                 default:
-                    int intchar = [[event characters] characterAtIndex: 0];
-                    if ( intchar >= NSF1FunctionKey && intchar >= NSF24FunctionKey )
+                    int intchar = [s characterAtIndex: 0];
+                    if ( intchar >= NSF1FunctionKey && intchar <= NSF24FunctionKey )
                         retval = WXK_F1 + (intchar - NSF1FunctionKey );
                     break;
             }