summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pinentry-dmenu.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/pinentry-dmenu.c b/pinentry-dmenu.c
index 9004a3e..8538878 100644
--- a/pinentry-dmenu.c
+++ b/pinentry-dmenu.c
@@ -373,31 +373,31 @@ keypress_confirm(XKeyEvent *ev, KeySym ksym) {
}
switch(ksym) {
- case XK_KP_Enter:
- case XK_Return:
- if (sel != Nothing) {
- return 1;
- }
- break;
- case XK_y:
- case XK_Y:
- sel = Yes;
- return 1;
- case XK_n:
- case XK_N:
- sel = No;
- return 1;
- case XK_Escape:
- pinentry->canceled = 1;
- sel = No;
+ case XK_KP_Enter:
+ case XK_Return:
+ if (sel != Nothing) {
return 1;
- case XK_Left:
- sel = No;
- break;
- case XK_Right:
- sel = Yes;
- break;
}
+ break;
+ case XK_y:
+ case XK_Y:
+ sel = Yes;
+ return 1;
+ case XK_n:
+ case XK_N:
+ sel = No;
+ return 1;
+ case XK_Escape:
+ pinentry->canceled = 1;
+ sel = No;
+ return 1;
+ case XK_Left:
+ sel = No;
+ break;
+ case XK_Right:
+ sel = Yes;
+ break;
+ }
return 0;
}