You can abort the dialog and password prompt with CTRL+C
This commit is contained in:
parent
68a3524700
commit
6fc1c94d12
1 changed files with 11 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue