From 03adaa356c64e222502fd2b1ff7e493f19a446c6 Mon Sep 17 00:00:00 2001 From: apio Date: Thu, 23 Mar 2023 21:33:50 +0100 Subject: [PATCH] kernel: Avoid printing keypresses twice --- kernel/src/arch/x86_64/CPU.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/kernel/src/arch/x86_64/CPU.cpp b/kernel/src/arch/x86_64/CPU.cpp index a8a3e834..bb815fbd 100644 --- a/kernel/src/arch/x86_64/CPU.cpp +++ b/kernel/src/arch/x86_64/CPU.cpp @@ -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); } } }