diff options
author | Moritz Luedecke <ritze@skweez.net> | 2017-09-10 11:05:39 +0200 |
---|---|---|
committer | Moritz Luedecke <ritze@skweez.net> | 2017-09-10 11:05:39 +0200 |
commit | 72044dca8af1195997353f86c067c4eae58c94bd (patch) | |
tree | 3d929d1b14b0128edf54b65bcd15b0e714924622 | |
parent | 0910a906dc494afce2469ca7f2e66c64cf90d8a4 (diff) |
Add paste with Ctrl+V
-rw-r--r-- | pinentry-dmenu.c | 4 |
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; |