bindings: at a Yes-No prompt, accept also ^Y for "Yes"
For symmetry with ^N for "No". Suggested-by: Brand Huntsman <alpha@qzx.com>master
parent
341601e1a2
commit
82aea04c79
|
@ -741,6 +741,9 @@ int do_yesno_prompt(bool all, const char *msg)
|
||||||
/* Interpret ^N and ^Q as "No", to allow exiting in anger. */
|
/* Interpret ^N and ^Q as "No", to allow exiting in anger. */
|
||||||
else if (kbinput == '\x0E' || kbinput == '\x11')
|
else if (kbinput == '\x0E' || kbinput == '\x11')
|
||||||
choice = 0;
|
choice = 0;
|
||||||
|
/* And interpret ^Y as "Yes". */
|
||||||
|
else if (kbinput == '\x19')
|
||||||
|
choice = 1;
|
||||||
#ifdef ENABLE_MOUSE
|
#ifdef ENABLE_MOUSE
|
||||||
else if (kbinput == KEY_MOUSE) {
|
else if (kbinput == KEY_MOUSE) {
|
||||||
int mouse_x, mouse_y;
|
int mouse_x, mouse_y;
|
||||||
|
|
Loading…
Reference in New Issue