mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-22 12:51:23 +03:00
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:
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. */
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user