Commit: 72044dca8af1195997353f86c067c4eae58c94bd
Parent: 0910a906dc494afce2469ca7f2e66c64cf90d8a4
Author: Moritz Luedecke
Date: Sun, 10 Sep 2017 11:05:39 +0200
Add paste with Ctrl+V
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git 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;