kernel: Avoid printing keypresses twice

This commit is contained in:
apio 2023-03-23 21:33:50 +01:00
parent cda036ce70
commit 03adaa356c
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -126,11 +126,7 @@ void io_thread()
while (!scancode_queue.try_pop(scancode)) { kernel_sleep(10); } while (!scancode_queue.try_pop(scancode)) { kernel_sleep(10); }
char key; char key;
if (Keyboard::decode_scancode(scancode).try_set_value(key)) if (Keyboard::decode_scancode(scancode).try_set_value(key)) { ConsoleDevice::did_press_key(key); }
{
TextConsole::putchar(key);
ConsoleDevice::did_press_key(key);
}
} }
} }