You can abort the dialog and password prompt with CTRL+C

pull/4/head
Moritz Luedecke 7 years ago
parent 68a3524700
commit 6fc1c94d12

@ -385,6 +385,12 @@ keypress(XKeyEvent *ev) {
case XK_N: case XK_N:
sel = No; sel = No;
return 1; return 1;
case XK_c:
if (ev->state == ControlMask) {
pinentry->canceled = 1;
sel = No;
return 1;
}
case XK_Escape: case XK_Escape:
pinentry->canceled = 1; pinentry->canceled = 1;
sel = No; sel = No;
@ -410,6 +416,11 @@ keypress(XKeyEvent *ev) {
} }
insert(NULL, nextrune(cursor, -1) - cursor); insert(NULL, nextrune(cursor, -1) - cursor);
break; break;
case XK_c:
if (ev->state == ControlMask) {
pinentry->canceled = 1;
return 1;
}
case XK_Escape: case XK_Escape:
pinentry->canceled = 1; pinentry->canceled = 1;
return 1; return 1;

Loading…
Cancel
Save