From: Paul Mackerras Date: Wed, 15 Oct 2008 22:57:02 +0000 (+1100) Subject: gitk: Fix binding for in sha1 entry field X-Git-Url: https://privyetmir.co.uk/gitweb.cgi?a=commitdiff_plain;h=968ce45c9d2765b527d895b6933d20c0d104387c;p=gitk 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 --- diff --git a/gitk b/gitk index ccfe191..00ea8da 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}