Skip to content

Commit b1cc209

Browse files
msizanoen1gregkh
authored andcommitted
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: 9fc3de9 ("vt: Add virtual console keyboard mode OFF") Signed-off-by: Myrrh Periwinkle <[email protected]> Cc: stable <[email protected]> Reviewed-by: Jiri Slaby <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 86fa39d commit b1cc209

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tty/vt/keyboard.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1487,7 +1487,7 @@ static void kbd_keycode(unsigned int keycode, int down, bool hw_raw)
14871487
rc = atomic_notifier_call_chain(&keyboard_notifier_list,
14881488
KBD_UNICODE, &param);
14891489
if (rc != NOTIFY_STOP)
1490-
if (down && !raw_mode)
1490+
if (down && !(raw_mode || kbd->kbdmode == VC_OFF))
14911491
k_unicode(vc, keysym, !down);
14921492
return;
14931493
}

0 commit comments

Comments
 (0)