Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 66392c4f authored by Samuel Thibault's avatar Samuel Thibault Committed by Sam Ravnborg
Browse files

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: default avatarSamuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent 5e8d780d
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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++) {
		if (i != choice)
			print_item(list, items[(scroll + i) * 3 + 1],
			   status[i + scroll], i, i == choice);
				   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);