@matheusbsbs / matheus-bagliano / commits / 968ce45c9d
Fork 0

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 <paulus@samba.org>

Paul Mackerras committed Oct 16, 2008 at 09:57 UTC 968ce45c9d2765b527d895b6933d20c0d104387c
1 file changed +1 -1
gitk
+1 -1
@@ -2161,7 +2161,7 @@ proc makewindow {} {
2161 bind . <Destroy> {stop_backends}
2162 bind . <Button-1> "click %W"
2163 bind $fstring <Key-Return> {dofind 1 1}
2164 - bind $sha1entry <Key-Return> gotocommit
2164 + bind $sha1entry <Key-Return> {gotocommit; break}
2165 bind $sha1entry <<PasteSelection>> clearsha1
2166 bind $cflist <1> {sel_flist %W %x %y; break}
2167 bind $cflist <B1-Motion> {sel_flist %W %x %y; break}