mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-08 10:35:54 -04:00
tty/sysrq: More intuitive Shift handling
Make Alt-SysRq-Shift-<key> behave like Alt-Shift-SysRq-<key>. Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Oskari Pirhonen <xxc3ncoredxx@gmail.com> Link: https://lore.kernel.org/r/YU/6SCmUr9qGkqBu@dj3ntoo Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
d02b006b29
commit
3aee752cd0
@@ -843,6 +843,8 @@ static bool sysrq_handle_keypress(struct sysrq_state *sysrq,
|
||||
sysrq->shift = KEY_RESERVED;
|
||||
else if (value != 2)
|
||||
sysrq->shift = code;
|
||||
if (sysrq->active)
|
||||
sysrq->shift_use = sysrq->shift;
|
||||
break;
|
||||
|
||||
case KEY_SYSRQ:
|
||||
|
||||
Reference in New Issue
Block a user