diff options
author | Oskari Pirhonen <xxc3ncoredxx@gmail.com> | 2021-09-26 06:42:48 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-10-10 15:19:43 +0200 |
commit | 3aee752cd0b880b052b2757278227d09673a2abd (patch) | |
tree | 0c805dad4d1a886f68dc4c17b9709e254592b89d /drivers | |
parent | Revert "serial: 8250: Fix reporting real baudrate value in c_ospeed field" (diff) | |
download | linux-3aee752cd0b880b052b2757278227d09673a2abd.tar.xz linux-3aee752cd0b880b052b2757278227d09673a2abd.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/tty/sysrq.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/tty/sysrq.c b/drivers/tty/sysrq.c index c911196ac893..4d3dbe62daf8 100644 --- a/drivers/tty/sysrq.c +++ b/drivers/tty/sysrq.c @@ -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: |