Date: Tue, 03 Dec 2019 11:21:26 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 240760] Caps lock key became a character in GELI passphrase entry after upgrading to 12.0 w/root-on-ZFS Message-ID: <bug-240760-227-zcqd2qkrPR@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-240760-227@https.bugs.freebsd.org/bugzilla/> References: <bug-240760-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240760 --- Comment #9 from Toomas Soome <tsoome@freebsd.org> --- (In reply to Lorenzo Salvadore from comment #8) please try this patch and please report me back the output: Index: stand/efi/libefi/efi_console.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- stand/efi/libefi/efi_console.c (revision 355225) +++ stand/efi/libefi/efi_console.c (working copy) @@ -1112,6 +1112,9 @@ if (status =3D=3D EFI_SUCCESS) { kss =3D key_data.KeyState.KeyShiftState; kp =3D &key_data.Key; + printf("kts: %x kss: %x scan: %x unicode: %x\n", + key_data.KeyState.KeyToggleState, kss, + kp->ScanCode, kp->UnicodeChar); if (kss & EFI_SHIFT_STATE_VALID) { /* @@ -1126,10 +1129,11 @@ kp->UnicodeChar++; } } + if (kp->ScanCode =3D=3D 0 && kp->UnicodeChar =3D=3D= 0) + return (false); + keybuf_inschar(kp); + return (true); } - - keybuf_inschar(kp); - return (true); } return (false); } --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-240760-227-zcqd2qkrPR>