[PATCH] tty/sysrq: More intuitive Shift handling
From: Oskari Pirhonen
Date: Sun Sep 26 2021 - 00:41:08 EST
Make Alt-SysRq-Shift-<key> behave like Alt-Shift-SysRq-<key>.
Signed-off-by: Oskari Pirhonen <xxc3ncoredxx@xxxxxxxxx>
---
drivers/tty/sysrq.c | 2 ++
1 file changed, 2 insertions(+)
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:
--
2.32.0