linux-yocto/scripts/kconfig
Yann E. MORIN 33f423bddb 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>
2025-08-20 18:30:48 +02:00
..
lxdialog kconfig: lxdialog: fix 'space' to (de)select options 2025-08-20 18:30:48 +02:00
tests
.gitignore
conf.c
confdata.c kconfig: do not clear SYMBOL_VALID when reading include/config/auto.conf 2025-05-29 11:02:17 +02:00
expr.c
expr.h
gconf-cfg.sh
gconf.c kconfig: gconf: fix potential memory leak in renderer_edited() 2025-08-20 18:30:48 +02:00
gconf.glade
images.c
images.h
internal.h
lexer.l
lkc_proto.h
lkc.h
Makefile kbuild: suppress stdout from merge_config for silent builds 2025-02-21 14:01:27 +01:00
mconf-cfg.sh
mconf.c
menu.c
merge_config.sh kconfig: merge_config: use an empty file as initfile 2025-05-29 11:02:02 +02:00
mnconf-common.c
mnconf-common.h
nconf-cfg.sh
nconf.c kconfig: nconf: Ensure null termination where strncpy is used 2025-08-20 18:30:47 +02:00
nconf.gui.c kconfig: nconf: Ensure null termination where strncpy is used 2025-08-20 18:30:47 +02:00
nconf.h
parser.y
preprocess.c
preprocess.h
qconf-cfg.sh
qconf.cc kconfig: qconf: fix ConfigList::updateListAllforAll() 2025-08-15 12:14:03 +02:00
qconf.h
streamline_config.pl
symbol.c
util.c