support/kconfig: fix 'space' to (de)select options
authorYann E. MORIN <yann.morin.1998@free.fr>
Wed, 13 Nov 2013 23:53:32 +0000 (00:53 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 14 Nov 2013 11:29:25 +0000 (12:29 +0100)
commitc6597e5aa3fa4bb52e9749797c90467083aa363b
tree83623c3fe39a083f0c2938b8bdc57a680a327099
parentc50080ab40896cb227f25b376910d304fa31f000
support/kconfig: 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>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Peter Korsgaard <jacmet@uclibc.org>
Cc: Samuel Martin <s.martin49@gmail.com>
Cc: Thomas De Schampheleire <patrickdepinguin@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
support/kconfig/lxdialog/menubox.c
support/kconfig/patches/16-fix-space-to-de-select-options.patch [new file with mode: 0644]
support/kconfig/patches/series