From: Paul Mackerras Date: Wed, 15 Oct 2008 22:57:02 +0000 (+1100) Subject: gitk: Fix binding for in sha1 entry field X-Git-Tag: v1.6.1-rc1~2^2~24 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=968ce45c9d2765b527d895b6933d20c0d104387c;p=git.git 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 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}