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
This commit is contained in:
Kevin Ollivier 2009-03-05 05:23:25 +00:00
parent de4bf0b305
commit b480b80a27

View 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;
}