From be1f9dc5c56bf881d315f0ba78c9fd0fd4a15e94 Mon Sep 17 00:00:00 2001 From: Cheng Renquan Date: Thu, 1 Sep 2011 10:52:22 -0700 Subject: [PATCH] --- yaml --- r: 274309 b: refs/heads/master c: 93072c3ecafcf188390750cc755185f3150736b9 h: refs/heads/master i: 274307: 57fa4a1efc6eb379507b883ec4307a36da255b40 v: v3 --- [refs] | 2 +- trunk/scripts/kconfig/nconf.gui.c | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 80fab97a1ada..8c680a524ef4 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e631a57a19e103c3bb59495b236634ec62e2a850 +refs/heads/master: 93072c3ecafcf188390750cc755185f3150736b9 diff --git a/trunk/scripts/kconfig/nconf.gui.c b/trunk/scripts/kconfig/nconf.gui.c index 4b9d8b66087d..3b18dd839668 100644 --- a/trunk/scripts/kconfig/nconf.gui.c +++ b/trunk/scripts/kconfig/nconf.gui.c @@ -465,6 +465,14 @@ int dialog_inputbox(WINDOW *main_window, cursor_form_win--; } break; + case KEY_HOME: + cursor_position = 0; + cursor_form_win = 0; + break; + case KEY_END: + cursor_position = len; + cursor_form_win = min(cursor_position, prompt_width-1); + break; default: if ((isgraph(res) || isspace(res))) { /* one for new char, one for '\0' */