diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/kconfig/nconf.gui.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/kconfig/nconf.gui.c b/scripts/kconfig/nconf.gui.c index 4b9d8b66087d..3b18dd839668 100644 --- a/scripts/kconfig/nconf.gui.c +++ b/scripts/kconfig/nconf.gui.c | |||
@@ -465,6 +465,14 @@ int dialog_inputbox(WINDOW *main_window, | |||
465 | cursor_form_win--; | 465 | cursor_form_win--; |
466 | } | 466 | } |
467 | break; | 467 | break; |
468 | case KEY_HOME: | ||
469 | cursor_position = 0; | ||
470 | cursor_form_win = 0; | ||
471 | break; | ||
472 | case KEY_END: | ||
473 | cursor_position = len; | ||
474 | cursor_form_win = min(cursor_position, prompt_width-1); | ||
475 | break; | ||
468 | default: | 476 | default: |
469 | if ((isgraph(res) || isspace(res))) { | 477 | if ((isgraph(res) || isspace(res))) { |
470 | /* one for new char, one for '\0' */ | 478 | /* one for new char, one for '\0' */ |