[SeaBIOS] [PATCH 03/10] kbd: Suppress keys without mappings
Kevin O'Connor
kevin at koconnor.net
Mon Sep 5 20:36:04 CEST 2016
Don't warn if a key without a mapping is pressed - it's known that
some keys aren't mapped to keycodes. Suppress these keys instead of
sending 0x0000 to the keyboard buffer - as 0x0000 can confuse some
programs.
Signed-off-by: Kevin O'Connor <kevin at koconnor.net>
---
src/kbd.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/kbd.c b/src/kbd.c
index b7b34ee..b889cf7 100644
--- a/src/kbd.c
+++ b/src/kbd.c
@@ -555,9 +555,8 @@ __process_key(u8 scancode)
else
keycode = (keycode & 0xff00) | 0xe0;
}
- if (!keycode)
- dprintf(1, "KBD: keycode is zero?\n");
- enqueue_key(keycode);
+ if (keycode)
+ enqueue_key(keycode);
break;
}
flags2 &= ~KF2_LAST_E0;
--
2.5.5
More information about the SeaBIOS
mailing list