File tree 1 file changed +9
-0
lines changed 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -2664,6 +2664,12 @@ proc focus_widget {widget} {
2664
2664
}
2665
2665
}
2666
2666
2667
+ proc toggle_commit_type {} {
2668
+ global commit_type_is_amend
2669
+ set commit_type_is_amend [ expr !$commit_type_is_amend ]
2670
+ do_select_commit_type
2671
+ }
2672
+
2667
2673
######################################################################
2668
2674
##
2669
2675
## ui construction
@@ -2854,6 +2860,7 @@ if {[is_enabled multicommit] || [is_enabled singlecommit]} {
2854
2860
if {![ is_enabled nocommit] } {
2855
2861
.mbar.commit add checkbutton \
2856
2862
-label [ mc " Amend Last Commit" ] \
2863
+ -accelerator $M1T -E \
2857
2864
-variable commit_type_is_amend \
2858
2865
-command do_select_commit_type
2859
2866
lappend disable_on_lock \
@@ -3898,6 +3905,8 @@ bind . <$M1B-Key-j> do_revert_selection
3898
3905
bind . <$M1B -Key-J> do_revert_selection
3899
3906
bind . <$M1B -Key-i> do_add_all
3900
3907
bind . <$M1B -Key-I> do_add_all
3908
+ bind . <$M1B -Key-e> toggle_commit_type
3909
+ bind . <$M1B -Key-E> toggle_commit_type
3901
3910
bind . <$M1B -Key-minus> {show_less_context;break}
3902
3911
bind . <$M1B -Key-KP_Subtract> {show_less_context;break}
3903
3912
bind . <$M1B -Key-equal> {show_more_context;break}
You can’t perform that action at this time.
0 commit comments