tty/vt/keyboard: define LED triggers for VT keyboard lock states
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 6 Jun 2015 18:44:39 +0000 (11:44 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 16 Jun 2015 21:59:46 +0000 (14:59 -0700)
commiteeb64c14275e52740d6410632e62e0ad9b88ca70
tree22b808cc11a63db51f10464613b6d1ed93b6536c
parent5235552273e6b68abbed3b3047af6344e2e60c2c
tty/vt/keyboard: define LED triggers for VT keyboard lock states

In addition to defining triggers for VT LED states, let's define triggers
for VT keyboard lock states, such as "kbd-shiftlock", "kbd-altgrlock", etc.

This permits to fix #7063 from userland by using a modifier to implement
proper CapsLock behavior and have the keyboard caps lock led show that
modifier state.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Tested-by: Pavel Machek <pavel@ucw.cz>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/tty/vt/keyboard.c