mirror of
https://github.com/torvalds/linux.git
synced 2024-11-16 17:12:06 +00: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:
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:
|
||||
|
Loading…
Reference in New Issue
Block a user