projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e8d780
)
kconfig: enhancing accessibility of lxdialog
author
Samuel Thibault
<
[email protected]
>
Fri, 30 Jun 2006 09:18:50 +0000
(
02:18
-0700)
committer
Sam Ravnborg
<
[email protected]
>
Sat, 1 Jul 2006 08:05:42 +0000
(10:05 +0200)
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 <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Sam Ravnborg <
[email protected]
>
scripts/kconfig/lxdialog/checklist.c
patch
|
blob
|
history
diff --git
a/scripts/kconfig/lxdialog/checklist.c
b/scripts/kconfig/lxdialog/checklist.c
index be0200e9cdaf759ae9de72a1b2e5bec65bbaae9e..79886413b6d52736689e29f8b5a5cd8e4a9c7532 100644
(file)
--- 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);