summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorkevin_walzer <kevin_walzer@noemail.net>2011-07-18 03:40:14 (GMT)
committerkevin_walzer <kevin_walzer@noemail.net>2011-07-18 03:40:14 (GMT)
commit0eec1da6d3a78616ea389cfd5baa767a7bc1f613 (patch)
tree80a62eff4cd3381373e71361095305c9fdfbc07e /macosx
parent5eb7e011f82dda02fec299f17fbd2016bdc59d26 (diff)
downloadtk-0eec1da6d3a78616ea389cfd5baa767a7bc1f613.zip
tk-0eec1da6d3a78616ea389cfd5baa767a7bc1f613.tar.gz
tk-0eec1da6d3a78616ea389cfd5baa767a7bc1f613.tar.bz2
Fix issue with shift key firing twice if bound to different procedure
FossilOrigin-Name: 40df0abfc5492b84455b157bab901afbf74e3192
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXMenu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/macosx/tkMacOSXMenu.c b/macosx/tkMacOSXMenu.c
index 6877819..3ada6d7 100644
--- a/macosx/tkMacOSXMenu.c
+++ b/macosx/tkMacOSXMenu.c
@@ -280,7 +280,8 @@ static int ModifierCharWidth(Tk_Font tkfont);
- (BOOL) menuHasKeyEquivalent: (NSMenu *) menu forEvent: (NSEvent *) event
target: (id *) target action: (SEL *) action
{
- NSString *key = [event charactersIgnoringModifiers];
+ /*Use lowercaseString to keep "shift" from firing twice if bound to different procedure.*/
+ NSString *key = [[event charactersIgnoringModifiers] lowercaseString];
NSUInteger modifiers = [event modifierFlags] &
NSDeviceIndependentModifierFlagsMask;