2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/scripts/kconfig/lxdialog
Yann E. MORIN 694174f94e kconfig: lxdialog: fix 'space' to (de)select options
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>
2025-06-24 20:30:27 +09:00
..
BIG.FAT.WARNING kconfig: remove trailing whitespaces 2019-05-09 22:37:17 +09:00
checklist.c kconfig: Fix typo HEIGTH to HEIGHT 2024-03-31 21:09:50 +09:00
dialog.h kconfig: Fix typo HEIGTH to HEIGHT 2024-03-31 21:09:50 +09:00
inputbox.c kconfig: Fix typo HEIGTH to HEIGHT 2024-03-31 21:09:50 +09:00
menubox.c kconfig: lxdialog: fix 'space' to (de)select options 2025-06-24 20:30:27 +09:00
textbox.c kconfig: Fix typo HEIGTH to HEIGHT 2024-03-31 21:09:50 +09:00
util.c kconfig: lxdialog: remove initialization with A_NORMAL 2024-05-14 23:36:19 +09:00
yesno.c kconfig: Fix typo HEIGTH to HEIGHT 2024-03-31 21:09:50 +09:00