FS#11975 - Apply "Backlight on first keypress" only for certain keys
Opened by sideral (sideral) - Monday, 28 February 2011, 23:37 GMT
Last edited by sideral (sideral) - Saturday, 23 April 2011, 13:20 GMT
I didn't like that the "Backlight on first keypress" function ignores the first keypress no matter which key was pressed. For example, I want the volume keys to work normally even when the backlight is off (that is, they should turn on the backlight *and* change the volume).
This patch restricts "Backlight on first keypress" to certain buttons only. in other words, these buttons work normally only when the backlight is on; otherwise, they just turn on the backlight. As a proof of concept, it changes the Clip and Clip+ behavior to filter out only the Home key when the backlight is off, allowing the other keys to function normally.
It works by allowing button-target.h to define the buttons that are filtered by the "Backlight on first keypress" function. If left undefined, the function filters all buttons when the backlight is off, as in the status quo.
[EDIT: Clarified that there is no overlap with FS#9305 - Context sensitive backlight on key press]