diff options
author | Ilya Bobyr <ilya.bobyr@gmail.com> | 2014-03-20 01:58:51 -0700 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2014-06-15 11:35:50 +1000 |
commit | ada2ea1695c4200dd9deaef2034cc453c27729f7 (patch) | |
tree | b1b56b99e4346453ca535f99ae91073dd8d00886 | |
parent | c4a0483fd5917dfa77024d5b46cb48f62dc32424 (diff) | |
download | git-ada2ea1695c4200dd9deaef2034cc453c27729f7.tar.gz |
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>
-rwxr-xr-x | gitk | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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} |