summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXMenu.c
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2012-01-29 16:36:28 (GMT)
committerKevin Walzer <kw@codebykevin.com>2012-01-29 16:36:28 (GMT)
commita88132bace0dc4479f570f046c2be6c5e1c2d51d (patch)
tree0928dd1c5453cdab0439e19104a4b93f54e59d57 /macosx/tkMacOSXMenu.c
parent04de281557e8c7d14e3de9477c208f495a331132 (diff)
downloadtk-a88132bace0dc4479f570f046c2be6c5e1c2d51d.zip
tk-a88132bace0dc4479f570f046c2be6c5e1c2d51d.tar.gz
tk-a88132bace0dc4479f570f046c2be6c5e1c2d51d.tar.bz2
Fix for serious bugs with input methods, and for display of certain fonts in buttons; thanks to Adrian Robert for extensive patches
Diffstat (limited to 'macosx/tkMacOSXMenu.c')
-rw-r--r--macosx/tkMacOSXMenu.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/macosx/tkMacOSXMenu.c b/macosx/tkMacOSXMenu.c
index 19db490..d04f0cd 100644
--- a/macosx/tkMacOSXMenu.c
+++ b/macosx/tkMacOSXMenu.c
@@ -292,6 +292,12 @@ static int ModifierCharWidth(Tk_Font tkfont);
return NO;
}
+ // For command key, take input manager's word so things
+ // like dvorak / qwerty layout work.
+ if (([event modifierFlags] & NSCommandKeyMask) == NSCommandKeyMask) {
+ key = [event characters];
+ }
+
NSArray *itemArray = [self itemArray];
for (NSMenuItem *item in itemArray) {