diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2016-09-02 16:18:53 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-09-12 10:22:10 -0400 |
commit | da90e733004ad39e6b2e8c280f8a9f95ac17e354 (patch) | |
tree | dd5b42c28b442670239dc197263065e1c34f4056 | |
parent | b47c6e3f70442829efb879dd1442ae9bdba62806 (diff) | |
download | seabios-da90e733004ad39e6b2e8c280f8a9f95ac17e354.zip seabios-da90e733004ad39e6b2e8c280f8a9f95ac17e354.tar.gz seabios-da90e733004ad39e6b2e8c280f8a9f95ac17e354.tar.bz2 |
kbd: Suppress keys without mappings
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@koconnor.net>
-rw-r--r-- | src/kbd.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -553,9 +553,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; |