File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 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} {
26642664 }
26652665}
26662666
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+
26672673######################################################################
26682674##
26692675## ui construction
@@ -2854,6 +2860,7 @@ if {[is_enabled multicommit] || [is_enabled singlecommit]} {
28542860 if {![ is_enabled nocommit] } {
28552861 .mbar.commit add checkbutton \
28562862 -label [ mc " Amend Last Commit" ] \
2863+ -accelerator $M1T -E \
28572864 -variable commit_type_is_amend \
28582865 -command do_select_commit_type
28592866 lappend disable_on_lock \
@@ -3898,6 +3905,8 @@ bind . <$M1B-Key-j> do_revert_selection
38983905bind . <$M1B -Key-J> do_revert_selection
38993906bind . <$M1B -Key-i> do_add_all
39003907bind . <$M1B -Key-I> do_add_all
3908+ bind . <$M1B -Key-e> toggle_commit_type
3909+ bind . <$M1B -Key-E> toggle_commit_type
39013910bind . <$M1B -Key-minus> {show_less_context;break}
39023911bind . <$M1B -Key-KP_Subtract> {show_less_context;break}
39033912bind . <$M1B -Key-equal> {show_more_context;break}
You can’t perform that action at this time.
0 commit comments