Skip to content

Commit 146a6f1

Browse files
birgerspgitster
authored andcommitted
git-gui: bind CTRL/CMD+numpad ENTER to do_commit
CTRL/CMD+ENTER is bound to do_commit, but this did not apply for the (numpad ENTER) key. To enable CTRL/CMD+ENTER and CTRL/CMD+(numpad ENTER) to yield the same behaviour, CTRL/CMD+(numpad enter) has also been bound to do_commit. Signed-off-by: Birger Skogeng Pedersen <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5ab7227 commit 146a6f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

git-gui.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3843,6 +3843,7 @@ bind . <$M1B-Key-equal> {show_more_context;break}
38433843
bind . <$M1B-Key-plus> {show_more_context;break}
38443844
bind . <$M1B-Key-KP_Add> {show_more_context;break}
38453845
bind . <$M1B-Key-Return> do_commit
3846+
bind . <$M1B-Key-KP_Enter> do_commit
38463847
foreach i [list $ui_index $ui_workdir] {
38473848
bind $i <Button-1> { toggle_or_diff click %W %x %y; break }
38483849
bind $i <$M1B-Button-1> { add_one_to_selection %W %x %y; break }

0 commit comments

Comments
 (0)