summaryrefslogtreecommitdiff
path: root/git-gui.sh
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-10-08 05:39:08 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2007-10-10 05:12:18 (GMT)
commit13824e2df23c18eab28b2b9a8c112276a84dd419 (patch)
treebf7e741c54d533b25b34af9bb3abbaa042fc2e97 /git-gui.sh
parent6bdf5e5f20c792ad0c5d5ba941d7e637aca86d32 (diff)
downloadgit-13824e2df23c18eab28b2b9a8c112276a84dd419.zip
git-13824e2df23c18eab28b2b9a8c112276a84dd419.tar.gz
git-13824e2df23c18eab28b2b9a8c112276a84dd419.tar.bz2
git-gui: Bind Cmd-, to Preferences on Mac OS X
A Mac OS X UI convention is to have Cmd-, be the accelerator key for the preferences window, which by convention is located in the apple menu under a separator below the about command. We also now call this "Preferences..." as that is the conventional term used in English. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'git-gui.sh')
-rwxr-xr-xgit-gui.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/git-gui.sh b/git-gui.sh
index c8307a6..be506b9 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -2018,8 +2018,12 @@ if {[is_MacOSX]} {
.mbar.apple add command -label [mc "About %s" [appname]] \
-command do_about
- .mbar.apple add command -label [mc "Options..."] \
- -command do_options
+ .mbar.apple add separator
+ .mbar.apple add command \
+ -label [mc "Preferences..."] \
+ -command do_options \
+ -accelerator $M1T-,
+ bind . <$M1B-,> do_options
} else {
# -- Edit Menu
#