[Bug 240760] Caps lock key became a character in GELI passphrase entry after upgrading to 12.0 w/root-on-ZFS
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Dec 3 11:21:28 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240760
--- Comment #9 from Toomas Soome <tsoome at 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
===================================================================
--- stand/efi/libefi/efi_console.c (revision 355225)
+++ stand/efi/libefi/efi_console.c (working copy)
@@ -1112,6 +1112,9 @@
if (status == EFI_SUCCESS) {
kss = key_data.KeyState.KeyShiftState;
kp = &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 == 0 && kp->UnicodeChar == 0)
+ return (false);
+ keybuf_inschar(kp);
+ return (true);
}
-
- keybuf_inschar(kp);
- return (true);
}
return (false);
}
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list