git-gui: Bind M1-P to push action
Users often need to be able to push the current branch so that they can publish their recent changes to anyone they are collaborating with on the project. Associating a keyboard action with this will make it easier for keyboard-oriented users to quickly activate the push features. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Shawn O. Pearce committed
Jul 5, 2007 at 22:15 UTC
840bcfa7b55dd94bd97a2d19a250f38d9ce80c77
1 file changed
+6
-1
git-gui.sh
+6
-1
@@ -1525,7 +1525,8 @@ if {[is_enabled transport]} {
1525
1526
menu .mbar.push
1527
.mbar.push add command -label {Push...} \
1528
- -command do_push_anywhere
1528
+ -command do_push_anywhere \
1529
+ -accelerator $M1T-P
1530
}
1531
1532
if {[is_MacOSX]} {
@@ -2148,6 +2149,10 @@ if {[is_enabled branch]} {
2149
bind . <$M1B-Key-n> do_create_branch
2150
bind . <$M1B-Key-N> do_create_branch
2151
}
2152
+if {[is_enabled transport]} {
2153
+ bind . <$M1B-Key-p> do_push_anywhere
2154
+ bind . <$M1B-Key-P> do_push_anywhere
2155
+}
2156
2157
bind . <Key-F5> do_rescan
2158
bind . <$M1B-Key-r> do_rescan