linux/scripts/kconfig/lxdialog
Yann E. MORIN 10e8ce719b kconfig: lxdialog: fix 'space' to (de)select options
[ Upstream commit 694174f94e ]

In case a menu has comment without letters/numbers (eg. characters
matching the regexp '^[^[:alpha:][:digit:]]+$', for example - or *),
hitting space will cycle through those comments, rather than
selecting/deselecting the currently-highlighted option.

This is the behaviour of hitting any letter/digit: jump to the next
option which prompt starts with that letter. The only letters that
do not behave as such are 'y' 'm' and 'n'. Prompts that start with
one of those three letters are instead matched on the first letter
that is not 'y', 'm' or 'n'.

Fix that by treating 'space' as we treat y/m/n, ie. as an action key,
not as shortcut to jump to  prompt.

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Cherniaev Andrei <dungeonlords789@naver.com>
[masahiro: took from Buildroot, adjusted the commit subject]
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-08-28 16:26:02 +02:00
..
BIG.FAT.WARNING kconfig: remove trailing whitespaces 2019-05-09 22:37:17 +09:00
checklist.c kconfig: convert to SPDX License Identifier 2018-12-28 22:22:28 +09:00
dialog.h kconfig: convert to SPDX License Identifier 2018-12-28 22:22:28 +09:00
inputbox.c kconfig: lxdialog: replace strcpy() with strncpy() in inputbox.c 2025-08-28 16:26:02 +02:00
menubox.c kconfig: lxdialog: fix 'space' to (de)select options 2025-08-28 16:26:02 +02:00
textbox.c kconfig: convert to SPDX License Identifier 2018-12-28 22:22:28 +09:00
util.c kconfig: lxdialog: A spello fix and a punctuation added 2021-04-14 15:22:49 +09:00
yesno.c kconfig: convert to SPDX License Identifier 2018-12-28 22:22:28 +09:00