From 968ce45c9d2765b527d895b6933d20c0d104387c Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Thu, 16 Oct 2008 09:57:02 +1100 Subject: [PATCH] gitk: Fix binding for in sha1 entry field This adds a break so that gitk doesn't go and execute the global binding for (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 --- gitk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitk b/gitk index ccfe1917c..00ea8da73 100755 --- a/gitk +++ b/gitk @@ -2161,7 +2161,7 @@ proc makewindow {} { bind . {stop_backends} bind . "click %W" bind $fstring {dofind 1 1} - bind $sha1entry gotocommit + bind $sha1entry {gotocommit; break} bind $sha1entry <> clearsha1 bind $cflist <1> {sel_flist %W %x %y; break} bind $cflist {sel_flist %W %x %y; break} -- 2.26.2