aboutsummaryrefslogtreecommitdiff
path: root/gitk
diff options
context:
space:
mode:
authorIlya Bobyr <ilya.bobyr@gmail.com>2014-03-20 01:58:51 -0700
committerPaul Mackerras <paulus@samba.org>2014-06-15 11:35:50 +1000
commitada2ea1695c4200dd9deaef2034cc453c27729f7 (patch)
treeb1b56b99e4346453ca535f99ae91073dd8d00886 /gitk
parentc4a0483fd5917dfa77024d5b46cb48f62dc32424 (diff)
downloadgit-ada2ea1695c4200dd9deaef2034cc453c27729f7.tar.gz
git-ada2ea1695c4200dd9deaef2034cc453c27729f7.tar.xz
gitk: Replace SHA1 entry field on keyboard paste
We already replace old SHA with the clipboard content for the mouse paste event. It seems reasonable to do the same when pasting from keyboard. Signed-off-by: Ilya Bobyr <ilya.bobyr@gmail.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'gitk')
-rwxr-xr-xgitk1
1 files changed, 1 insertions, 0 deletions
diff --git a/gitk b/gitk
index 90764e894..2f58bcfbd 100755
--- a/gitk
+++ b/gitk
@@ -2585,6 +2585,7 @@ proc makewindow {} {
bind $fstring <Key-Return> {dofind 1 1}
bind $sha1entry <Key-Return> {gotocommit; break}
bind $sha1entry <<PasteSelection>> clearsha1
+ bind $sha1entry <<Paste>> clearsha1
bind $cflist <1> {sel_flist %W %x %y; break}
bind $cflist <B1-Motion> {sel_flist %W %x %y; break}
bind $cflist <ButtonRelease-1> {treeclick %W %x %y}