Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit ada2ea1

Browse files
ilya-bobyrpaulusmack
authored andcommitted
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 <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
1 parent c4a0483 commit ada2ea1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gitk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2585,6 +2585,7 @@ proc makewindow {} {
25852585
bind $fstring <Key-Return> {dofind 1 1}
25862586
bind $sha1entry <Key-Return> {gotocommit; break}
25872587
bind $sha1entry <<PasteSelection>> clearsha1
2588+
bind $sha1entry <<Paste>> clearsha1
25882589
bind $cflist <1> {sel_flist %W %x %y; break}
25892590
bind $cflist <B1-Motion> {sel_flist %W %x %y; break}
25902591
bind $cflist <ButtonRelease-1> {treeclick %W %x %y}

0 commit comments

Comments
 (0)