bindings: at a Yes-No prompt, accept also ^Y for "Yes"

For symmetry with ^N for "No".

Suggested-by: Brand Huntsman <alpha@qzx.com>
This commit is contained in:
Benno Schulenberg 2019-05-17 11:39:40 +02:00
parent 341601e1a2
commit 82aea04c79

View File

@ -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;