Ignore function keys as key equivalents.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27297 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2008-12-15 22:42:51 +00:00
parent a492085ebe
commit 2f0af2bf1b
2 changed files with 15 additions and 1 deletions

View file

@ -185,10 +185,19 @@ static NSImage *arrowImage = nil; /* Cache arrow image. */
unsigned int m = [_menuItem keyEquivalentModifierMask];
NSString *ucKey = [key uppercaseString];
BOOL shift;
unichar uchar;
if ((key == nil) || [key isEqualToString: @""])
return key;
uchar = [key characterAtIndex: 0];
if (uchar >= 0xF700)
{
// FIXME: At the moment we are not able to handle function keys
// as key equivalent
return nil;
}
if ([key isEqualToString: @"\\r"])
key = @"RET";
else if ([key isEqualToString: @"\\e"])