[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <YU/6SCmUr9qGkqBu@dj3ntoo>
Date: Sat, 25 Sep 2021 23:42:48 -0500
From: Oskari Pirhonen <xxc3ncoredxx@...il.com>
To: linux-kernel@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jiri Slaby <jirislaby@...nel.org>
Subject: [PATCH] tty/sysrq: More intuitive Shift handling
Make Alt-SysRq-Shift-<key> behave like Alt-Shift-SysRq-<key>.
Signed-off-by: Oskari Pirhonen <xxc3ncoredxx@...il.com>
---
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
Powered by blists - more mailing lists