diff options
author | kevin_walzer <kevin_walzer@noemail.net> | 2011-07-18 03:40:14 (GMT) |
---|---|---|
committer | kevin_walzer <kevin_walzer@noemail.net> | 2011-07-18 03:40:14 (GMT) |
commit | 0eec1da6d3a78616ea389cfd5baa767a7bc1f613 (patch) | |
tree | 80a62eff4cd3381373e71361095305c9fdfbc07e /macosx | |
parent | 5eb7e011f82dda02fec299f17fbd2016bdc59d26 (diff) | |
download | tk-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.c | 3 |
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; |