diff --git a/Kernel/TTY/VirtualConsole.cpp b/Kernel/TTY/VirtualConsole.cpp index f6e530b2ee7..13a43ac49f7 100644 --- a/Kernel/TTY/VirtualConsole.cpp +++ b/Kernel/TTY/VirtualConsole.cpp @@ -238,7 +238,9 @@ void VirtualConsole::on_key_pressed(KeyboardDevice::Event event) return; } - m_terminal.handle_key_press(event.key, event.code_point, event.flags); + Processor::deferred_call_queue([this, event]() { + m_terminal.handle_key_press(event.key, event.code_point, event.flags); + }); } ssize_t VirtualConsole::on_tty_write(const UserOrKernelBuffer& data, ssize_t size)