From: Kevin O'Connor Date: Fri, 2 Sep 2016 20:18:53 +0000 (-0400) Subject: kbd: Suppress keys without mappings X-Git-Tag: rel-1.10.0~17 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=da90e733004ad39e6b2e8c280f8a9f95ac17e354;p=people%2Fandrewcoop%2Fseabios.git 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 --- 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;