mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 22:21:00 +00:00
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:
parent
a492085ebe
commit
2f0af2bf1b
2 changed files with 15 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2008-12-15 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
|
* Source/NSMenuItemCell.m (-_keyEquivalentString): Ignore function
|
||||||
|
keys as key equivalents.
|
||||||
|
|
||||||
2008-12-15 Fred Kiefer <FredKiefer@gmx.de>
|
2008-12-15 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/NSImage.m: White space changes and general clean up.
|
* Source/NSImage.m: White space changes and general clean up.
|
||||||
|
|
|
@ -185,10 +185,19 @@ static NSImage *arrowImage = nil; /* Cache arrow image. */
|
||||||
unsigned int m = [_menuItem keyEquivalentModifierMask];
|
unsigned int m = [_menuItem keyEquivalentModifierMask];
|
||||||
NSString *ucKey = [key uppercaseString];
|
NSString *ucKey = [key uppercaseString];
|
||||||
BOOL shift;
|
BOOL shift;
|
||||||
|
unichar uchar;
|
||||||
|
|
||||||
if ((key == nil) || [key isEqualToString: @""])
|
if ((key == nil) || [key isEqualToString: @""])
|
||||||
return key;
|
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"])
|
if ([key isEqualToString: @"\\r"])
|
||||||
key = @"RET";
|
key = @"RET";
|
||||||
else if ([key isEqualToString: @"\\e"])
|
else if ([key isEqualToString: @"\\e"])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue