summaryrefslogtreecommitdiff
path: root/pinentry-dmenu.c
diff options
context:
space:
mode:
Diffstat (limited to 'pinentry-dmenu.c')
-rw-r--r--pinentry-dmenu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pinentry-dmenu.c b/pinentry-dmenu.c
index 8dd1116..a39bb73 100644
--- a/pinentry-dmenu.c
+++ b/pinentry-dmenu.c
@@ -403,6 +403,10 @@ static int
keypress_pin(XKeyEvent *ev, KeySym ksym, char* buf, int len) {
if (ev->state & ControlMask) {
switch(ksym) {
+ case XK_v:
+ XConvertSelection(dpy, (ev->state & ShiftMask) ? clip : XA_PRIMARY,
+ utf8, utf8, win, CurrentTime);
+ return 0;
case XK_c:
pinentry->canceled = 1;
return 1;