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

This commit is contained in:
Moritz Luedecke 2017-09-05 23:57:46 +02:00
parent 68a3524700
commit 6fc1c94d12

View file

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