Author: adamfoxtp
Date: Mon Aug 17 23:09:17 2015
New Revision: 38905
URL: http://svn.gna.org/viewcvs/gnustep?rev=38905&view=rev
Log:
Properly match Ctrl+Shift menu shortcuts in NSMenu.
Modified:
libs/gui/branches/gnustep_testplant_branch/Source/NSMenu.m
Modified: libs/gui/branches/gnustep_testplant_branch/Source/NSMenu.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/NSMenu.m?rev=38905&r1=38904&r2=38905&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/Source/NSMenu.m (original)
+++ libs/gui/branches/gnustep_testplant_branch/Source/NSMenu.m Mon Aug 17
23:09:17 2015
@@ -1269,6 +1269,10 @@
if ((modifiers & NSFunctionKeyMask)
|| ([keyEquivalent length] > 0 && [[NSCharacterSet controlCharacterSet]
characterIsMember:[keyEquivalent characterAtIndex:0]]))
relevantModifiersMask |= NSShiftKeyMask;
+ else if ((modifiers & NSShiftKeyMask)
+ && [keyEquivalent length] > 0
+ && [[NSCharacterSet lowercaseLetterCharacterSet]
characterIsMember:[keyEquivalent characterAtIndex:0]])
+ keyEquivalent = [keyEquivalent uppercaseString];
if ((type != NSKeyDown && type != NSKeyUp) || [keyEquivalent length] == 0)
return NO;
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs