diff options
author | Birger Skogeng Pedersen <birgersp@gmail.com> | 2018-03-02 11:01:48 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-03-02 15:13:30 -0800 |
commit | 146a6f1097f451c6b6d332916a515b7ce8c07e9a (patch) | |
tree | 7dec81134729cc73a62614bf86a7346657c6cae3 | |
parent | 5ab72271e16ac23c269f5019a74a7b1d65170e47 (diff) | |
download | git-146a6f1097f451c6b6d332916a515b7ce8c07e9a.tar.gz |
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 <birgersp@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-x | git-gui.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/git-gui.sh b/git-gui.sh index 5bc21b878d..39e80ebafa 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -3843,6 +3843,7 @@ bind . <$M1B-Key-equal> {show_more_context;break} bind . <$M1B-Key-plus> {show_more_context;break} bind . <$M1B-Key-KP_Add> {show_more_context;break} bind . <$M1B-Key-Return> do_commit +bind . <$M1B-Key-KP_Enter> do_commit foreach i [list $ui_index $ui_workdir] { bind $i <Button-1> { toggle_or_diff click %W %x %y; break } bind $i <$M1B-Button-1> { add_one_to_selection %W %x %y; break } |