diff options
Diffstat (limited to 'scripts/kconfig/lxdialog/textbox.c')
-rw-r--r-- | scripts/kconfig/lxdialog/textbox.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/kconfig/lxdialog/textbox.c b/scripts/kconfig/lxdialog/textbox.c index 86b0770b0387..a99e1f497d67 100644 --- a/scripts/kconfig/lxdialog/textbox.c +++ b/scripts/kconfig/lxdialog/textbox.c | |||
@@ -92,7 +92,7 @@ int dialog_textbox(const char *title, const char *tbuf, int height, int width) | |||
92 | wmove(dialog, cur_y, cur_x); /* Restore cursor position */ | 92 | wmove(dialog, cur_y, cur_x); /* Restore cursor position */ |
93 | wrefresh(dialog); | 93 | wrefresh(dialog); |
94 | 94 | ||
95 | while ((key != ESC) && (key != '\n')) { | 95 | while ((key != KEY_ESC) && (key != '\n')) { |
96 | key = wgetch(dialog); | 96 | key = wgetch(dialog); |
97 | switch (key) { | 97 | switch (key) { |
98 | case 'E': /* Exit */ | 98 | case 'E': /* Exit */ |
@@ -228,13 +228,14 @@ int dialog_textbox(const char *title, const char *tbuf, int height, int width) | |||
228 | wmove(dialog, cur_y, cur_x); | 228 | wmove(dialog, cur_y, cur_x); |
229 | wrefresh(dialog); | 229 | wrefresh(dialog); |
230 | break; | 230 | break; |
231 | case ESC: | 231 | case KEY_ESC: |
232 | key = on_key_esc(dialog); | ||
232 | break; | 233 | break; |
233 | } | 234 | } |
234 | } | 235 | } |
235 | delwin(text); | 236 | delwin(text); |
236 | delwin(dialog); | 237 | delwin(dialog); |
237 | return 255; /* ESC pressed */ | 238 | return key; /* ESC pressed */ |
238 | } | 239 | } |
239 | 240 | ||
240 | /* | 241 | /* |