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:
Oskari Pirhonen 2021-09-25 23:42:48 -05:00 committed by Greg Kroah-Hartman
parent d02b006b29
commit 3aee752cd0

View File

@ -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: