From b480b80a27bb103fd77e196aaed5a5306456d174 Mon Sep 17 00:00:00 2001 From: Kevin Ollivier Date: Thu, 5 Mar 2009 05:23:25 +0000 Subject: [PATCH] Fix comparison operator for functions keys (fixes #10547). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/cocoa/window.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osx/cocoa/window.mm b/src/osx/cocoa/window.mm index b5a0f099e5..e28d4fdb76 100644 --- a/src/osx/cocoa/window.mm +++ b/src/osx/cocoa/window.mm @@ -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; }