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:
parent
de4bf0b305
commit
b480b80a27
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user