{"thread":{"id":"35968","subject":"[PATCH] gitk: replace SHA1 entry field on keyboard paste","startedAt":"2014-02-27T09:56:52Z","lastAt":"2014-02-27T09:56:52Z","messageCount":1,"participants":["Ilya Bobyr"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"235449","messageId":"530F0BE4.1040609@gmail.com","threadId":"35968","inReplyTo":null,"subject":"[PATCH] gitk: replace SHA1 entry field on keyboard paste","fromName":"Ilya Bobyr","fromEmail":"ilya.bobir@gmail.com","sentAt":"2014-02-27T09:56:52Z","receivedAt":"2014-02-27T09:56:52Z","isPatch":true,"sender":{"key":"ilya.bobir@gmail.com","avatar":null},"body":"We already replace old SHA with the clipboard content for the mouse\npaste event.  It seems reasonable to do the same when pasting from\nkeyboard.\n\nSigned-off-by: Ilya Bobyr <ilya.bobyr@gmail.com>\n---\n  gitk-git/gitk |    1 +\n  1 files changed, 1 insertions(+), 0 deletions(-)\n\ndiff --git a/gitk-git/gitk b/gitk-git/gitk\nindex 90764e8..2f58bcf 100755\n--- a/gitk-git/gitk\n+++ b/gitk-git/gitk\n@@ -2585,6 +2585,7 @@ proc makewindow {} {\n      bind $fstring <Key-Return> {dofind 1 1}\n      bind $sha1entry <Key-Return> {gotocommit; break}\n      bind $sha1entry <<PasteSelection>> clearsha1\n+    bind $sha1entry <<Paste>> clearsha1\n      bind $cflist <1> {sel_flist %W %x %y; break}\n      bind $cflist <B1-Motion> {sel_flist %W %x %y; break}\n      bind $cflist <ButtonRelease-1> {treeclick %W %x %y}\n--\n1.7.9\n"}]}