]> xenbits.xensource.com Git - seabios.git/commitdiff
kbd: Suppress keys without mappings
authorKevin O'Connor <kevin@koconnor.net>
Fri, 2 Sep 2016 20:18:53 +0000 (16:18 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Mon, 12 Sep 2016 14:22:10 +0000 (10:22 -0400)
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>
src/kbd.c

index cc4102568d74e1b7bb93f703a683f799808d300f..203402a85058ed409966285a44cdd8cb90ee0222 100644 (file)
--- 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;