virtio: these F keys should work too

This commit is contained in:
K. Lange 2022-04-13 22:20:12 -04:00
parent 71ce811a65
commit 9ecad97b64

View File

@ -399,7 +399,7 @@ static void virtio_keyboard_thread(void * data) {
asm volatile ("isb\ndsb sy" :: "r"(buffers) : "memory");
if (evt.type == 1) {
/* need to back-convert which is a pain in the ass */
if (evt.code < 0x40) {
if (evt.code < 0x49) {
uint8_t scancode = evt.code;
if (evt.value == 0) {
scancode |= 0x80;