Add paste with Ctrl+V

pull/4/head
Moritz Luedecke 7 years ago
parent 0910a906dc
commit 72044dca8a

@ -403,6 +403,10 @@ static int
keypress_pin(XKeyEvent *ev, KeySym ksym, char* buf, int len) { keypress_pin(XKeyEvent *ev, KeySym ksym, char* buf, int len) {
if (ev->state & ControlMask) { if (ev->state & ControlMask) {
switch(ksym) { switch(ksym) {
case XK_v:
XConvertSelection(dpy, (ev->state & ShiftMask) ? clip : XA_PRIMARY,
utf8, utf8, win, CurrentTime);
return 0;
case XK_c: case XK_c:
pinentry->canceled = 1; pinentry->canceled = 1;
return 1; return 1;

Loading…
Cancel
Save