summaryrefslogtreecommitdiff
path: root/git-gui.sh
diff options
context:
space:
mode:
authorLibravatar Shawn O. Pearce <spearce@spearce.org>2007-10-07 22:39:08 -0700
committerLibravatar Shawn O. Pearce <spearce@spearce.org>2007-10-10 01:12:18 -0400
commit13824e2df23c18eab28b2b9a8c112276a84dd419 (patch)
treebf7e741c54d533b25b34af9bb3abbaa042fc2e97 /git-gui.sh
parentgit-gui: Consolidate the Fetch and Push menus into a Remote menu (diff)
downloadtgif-13824e2df23c18eab28b2b9a8c112276a84dd419.tar.xz
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 c8307a6eef..be506b908c 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
#