From: Oskari Pirhonen <xxc3ncoredxx@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Jiri Slaby <jirislaby@kernel.org>
Subject: [PATCH] tty/sysrq: More intuitive Shift handling
Date: Sat, 25 Sep 2021 23:42:48 -0500 [thread overview]
Message-ID: <YU/6SCmUr9qGkqBu@dj3ntoo> (raw)
Make Alt-SysRq-Shift-<key> behave like Alt-Shift-SysRq-<key>.
Signed-off-by: Oskari Pirhonen <xxc3ncoredxx@gmail.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
next reply other threads:[~2021-09-26 4:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-26 4:42 Oskari Pirhonen [this message]
2021-09-27 4:42 ` Greg Kroah-Hartman
2021-09-27 13:32 ` Oskari Pirhonen
2021-10-01 10:11 ` Pavel Machek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YU/6SCmUr9qGkqBu@dj3ntoo \
--to=xxc3ncoredxx@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=jirislaby@kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®