]> www.infradead.org Git - users/jedix/linux-maple.git/commit
vt: keyboard: Don't process Unicode characters in K_OFF mode
authorMyrrh Periwinkle <myrrhperiwinkle@qtmlabs.xyz>
Wed, 2 Jul 2025 14:17:57 +0000 (21:17 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jul 2025 16:53:50 +0000 (18:53 +0200)
commitb1cc2092ea7a52e2c435aee6d2b1bcb773202663
tree479033c745d311e5cb5ac67dde3f6faecbc5b060
parent86fa39dd6fb700c97606695b6ca40ff48ee323e9
vt: keyboard: Don't process Unicode characters in K_OFF mode

We don't process Unicode characters if the virtual terminal is in raw
mode, so there's no reason why we shouldn't do the same for K_OFF
(especially since people would expect K_OFF to actually turn off all VT
key processing).

Fixes: 9fc3de9c8356 ("vt: Add virtual console keyboard mode OFF")
Signed-off-by: Myrrh Periwinkle <myrrhperiwinkle@qtmlabs.xyz>
Cc: stable <stable@kernel.org>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20250702-vt-misc-unicode-fixes-v1-1-c27e143cc2eb@qtmlabs.xyz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/keyboard.c