aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-09-02 16:18:53 -0400
committerKevin O'Connor <kevin@koconnor.net>2016-09-12 10:22:10 -0400
commitda90e733004ad39e6b2e8c280f8a9f95ac17e354 (patch)
treedd5b42c28b442670239dc197263065e1c34f4056
parentb47c6e3f70442829efb879dd1442ae9bdba62806 (diff)
downloadseabios-da90e733004ad39e6b2e8c280f8a9f95ac17e354.tar.gz
seabios-da90e733004ad39e6b2e8c280f8a9f95ac17e354.tar.xz
seabios-da90e733004ad39e6b2e8c280f8a9f95ac17e354.zip
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.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/kbd.c b/src/kbd.c
index cc41025..203402a 100644
--- a/src/kbd.c
+++ b/src/kbd.c
@@ -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;