diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2006-06-30 02:18:50 -0700 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2006-07-01 10:05:42 +0200 |
commit | 66392c4f2246641c13b5dc60d15b09a71e09276f (patch) | |
tree | 3ff02370bd1040cc42cbd60666299e7b24619e06 /scripts/kconfig | |
parent | 5e8d780d745c1619aba81fe7166c5a4b5cad2b84 (diff) | |
download | linux-66392c4f2246641c13b5dc60d15b09a71e09276f.tar.gz linux-66392c4f2246641c13b5dc60d15b09a71e09276f.tar.bz2 linux-66392c4f2246641c13b5dc60d15b09a71e09276f.zip |
kconfig: enhancing accessibility of lxdialog
Some fix that I forgot for good accessibility of lxdialog (the cursor
should always be left at the focus location):
Have the checklist display the currently highlighted entry last, for having
the cursor left on it (rather than on the last line of the list).
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/kconfig')
-rw-r--r-- | scripts/kconfig/lxdialog/checklist.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/kconfig/lxdialog/checklist.c b/scripts/kconfig/lxdialog/checklist.c index be0200e9cdaf..79886413b6d5 100644 --- a/scripts/kconfig/lxdialog/checklist.c +++ b/scripts/kconfig/lxdialog/checklist.c @@ -187,9 +187,12 @@ int dialog_checklist(const char *title, const char *prompt, int height, /* Print the list */ for (i = 0; i < max_choice; i++) { - print_item(list, items[(scroll + i) * 3 + 1], - status[i + scroll], i, i == choice); + if (i != choice) + print_item(list, items[(scroll + i) * 3 + 1], + status[i + scroll], i, 0); } + print_item(list, items[(scroll + choice) * 3 + 1], + status[choice + scroll], choice, 1); print_arrows(dialog, choice, item_no, scroll, box_y, box_x + check_x + 5, list_height); |