commit 82aea04c7926387b1a340cb4419f58b209029489
parent 341601e1a2c86053586d90d21d6071db24d1da01
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Fri, 17 May 2019 11:39:40 +0200
bindings: at a Yes-No prompt, accept also ^Y for "Yes"
For symmetry with ^N for "No".
Suggested-by: Brand Huntsman <alpha@qzx.com>
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/prompt.c b/src/prompt.c
@@ -741,6 +741,9 @@ int do_yesno_prompt(bool all, const char *msg)
/* Interpret ^N and ^Q as "No", to allow exiting in anger. */
else if (kbinput == '\x0E' || kbinput == '\x11')
choice = 0;
+ /* And interpret ^Y as "Yes". */
+ else if (kbinput == '\x19')
+ choice = 1;
#ifdef ENABLE_MOUSE
else if (kbinput == KEY_MOUSE) {
int mouse_x, mouse_y;