kernel: Avoid printing keypresses twice
This commit is contained in:
parent
cda036ce70
commit
03adaa356c
@ -126,11 +126,7 @@ void io_thread()
|
||||
while (!scancode_queue.try_pop(scancode)) { kernel_sleep(10); }
|
||||
|
||||
char key;
|
||||
if (Keyboard::decode_scancode(scancode).try_set_value(key))
|
||||
{
|
||||
TextConsole::putchar(key);
|
||||
ConsoleDevice::did_press_key(key);
|
||||
}
|
||||
if (Keyboard::decode_scancode(scancode).try_set_value(key)) { ConsoleDevice::did_press_key(key); }
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user