summaryrefslogtreecommitdiff
path: root/pinentry-dmenu.c
diff options
context:
space:
mode:
Diffstat (limited to 'pinentry-dmenu.c')
-rw-r--r--pinentry-dmenu.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/pinentry-dmenu.c b/pinentry-dmenu.c
index a2ff9ae..1f05b1c 100644
--- a/pinentry-dmenu.c
+++ b/pinentry-dmenu.c
@@ -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;