From 72044dca8af1195997353f86c067c4eae58c94bd Mon Sep 17 00:00:00 2001 From: Moritz Luedecke Date: Sun, 10 Sep 2017 11:05:39 +0200 Subject: [PATCH] Add paste with Ctrl+V --- pinentry-dmenu.c | 4 ++++ 1 file changed, 4 insertions(+) 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;