]> Kevux Git Server - rit/commitdiff
gitk: Fix binding for <Return> in sha1 entry field
authorPaul Mackerras <paulus@samba.org>
Wed, 15 Oct 2008 22:57:02 +0000 (09:57 +1100)
committerPaul Mackerras <paulus@samba.org>
Wed, 15 Oct 2008 22:57:02 +0000 (09:57 +1100)
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 <paulus@samba.org>
gitk

diff --git a/gitk b/gitk
index ccfe191..00ea8da 100755 (executable)
--- a/gitk
+++ b/gitk
@@ -2161,7 +2161,7 @@ proc makewindow {} {
     bind . <Destroy> {stop_backends}
     bind . <Button-1> "click %W"
     bind $fstring <Key-Return> {dofind 1 1}
-    bind $sha1entry <Key-Return> gotocommit
+    bind $sha1entry <Key-Return> {gotocommit; break}
     bind $sha1entry <<PasteSelection>> clearsha1
     bind $cflist <1> {sel_flist %W %x %y; break}
     bind $cflist <B1-Motion> {sel_flist %W %x %y; break}