Skip to content

Commit 968ce45

Browse files
committed
gitk: Fix binding for <Return> in sha1 entry field
This adds a break so that gitk doesn't go and execute the global binding for <Return> (i.e. find next) when the user presses the return key in the sha1 entry field to indicate that gitk should jump to the commit identified by what they just put into the sha1 field. Signed-off-by: Paul Mackerras <[email protected]>
1 parent 39ee47e commit 968ce45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2161,7 +2161,7 @@ proc makewindow {} {
21612161
bind . <Destroy> {stop_backends}
21622162
bind . <Button-1> "click %W"
21632163
bind $fstring <Key-Return> {dofind 1 1}
2164-
bind $sha1entry <Key-Return> gotocommit
2164+
bind $sha1entry <Key-Return> {gotocommit; break}
21652165
bind $sha1entry <<PasteSelection>> clearsha1
21662166
bind $cflist <1> {sel_flist %W %x %y; break}
21672167
bind $cflist <B1-Motion> {sel_flist %W %x %y; break}

0 commit comments

Comments
 (0)