mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
In addition to exiting the dialog via ESC, the user could also have
exited via \r, \n, or ' ' (space); all of which are valid, non-error responses.
This commit is contained in:
parent
7bc7869122
commit
ca2ca2ab60
1 changed files with 1 additions and 1 deletions
|
|
@ -424,7 +424,7 @@ int dialog_textbox(unsigned char *title, unsigned char *file, int height, int wi
|
|||
delwin(dialog);
|
||||
free(buf);
|
||||
close(fd);
|
||||
return -1; /* ESC pressed */
|
||||
return (key == ESC ? -1 : 0);
|
||||
}
|
||||
/* End of dialog_textbox() */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue