git-gui: Fix menu item accelerator display on Mac OS X.
Apparently accelerators really only work correctly for function keys (F1-F12) and "Cmd-q". Apparently wish on Mac OS X reports itself as unix and the OS is Darwin, this makes it a little difficult to be sure we are running under Aqua. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Shawn O. Pearce committed
Nov 7, 2006 at 00:53 UTC
661448922fd55b907449962d35d3fdb92397ce9d
1 file changed
+4
-3
git-gui
+4
-3
@@ -1205,9 +1205,10 @@ set mainfont {Helvetica 10}
1205
set difffont {Courier 10}
1206
set maincursor [. cget -cursor]
1207
1208
-switch -- $tcl_platform(platform) {
1209
-windows {set M1B Control; set M1T Ctrl}
1210
-default {set M1B M1; set M1T M1}
1208
+switch -glob -- "$tcl_platform(platform),$tcl_platform(os)" {
1209
+windows,* {set M1B Control; set M1T Ctrl}
1210
+unix,Darwin {set M1B M1; set M1T Cmd}
1211
+default {set M1B M1; set M1T M1}
1212
}
1213
1214
# -- Menu Bar