gitk: Fix binding for <Return> in sha1 entry field
[gitweb.git] / gitk
diff --git a/gitk b/gitk
index ccfe1917cb3f15365955d72bab21d022b37df26a..00ea8da7359cb3fa8197adce0a47d7a0c5c54a92 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}