projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e631a57
)
scripts/kconfig/nconf: add KEY_HOME / KEY_END for dialog_inputbox
author
Cheng Renquan
<crquan@gmail.com>
Thu, 1 Sep 2011 17:52:22 +0000
(10:52 -0700)
committer
Michal Marek
<mmarek@suse.cz>
Fri, 9 Sep 2011 12:40:08 +0000
(14:40 +0200)
to make it easier to locate begin/end when editing long strings;
Signed-off-by: Cheng Renquan <crquan@gmail.com>
Acked By: Nir Tzachar <nir.tzachar@gmail.com>
scripts/kconfig/nconf.gui.c
patch
|
blob
|
blame
|
history
diff --git
a/scripts/kconfig/nconf.gui.c
b/scripts/kconfig/nconf.gui.c
index 4b9d8b66087d14610d95526b5bd08b472640fbda..3b18dd839668b295cd3d06b1c4cac3d4c941ddf3 100644
(file)
--- a/
scripts/kconfig/nconf.gui.c
+++ b/
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' */