All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tty/sysrq: More intuitive Shift handling
@ 2021-09-26  4:42 Oskari Pirhonen
  2021-09-27  4:42 ` Greg Kroah-Hartman
  2021-10-01 10:11 ` Pavel Machek
  0 siblings, 2 replies; 4+ messages in thread
From: Oskari Pirhonen @ 2021-09-26  4:42 UTC (permalink / raw)
  To: linux-kernel; +Cc: Greg Kroah-Hartman, Jiri Slaby

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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-10-01 10:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-26  4:42 [PATCH] tty/sysrq: More intuitive Shift handling Oskari Pirhonen
2021-09-27  4:42 ` Greg Kroah-Hartman
2021-09-27 13:32   ` Oskari Pirhonen
2021-10-01 10:11 ` Pavel Machek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.