From dffdd5545a360315fcd53c7b664cb991c9e7180f Mon Sep 17 00:00:00 2001 From: Conrad Pankoff Date: Mon, 12 Aug 2019 21:30:27 +1000 Subject: [PATCH] Kernel: Restore alt+n hijacking for virtual console switching --- Kernel/TTY/VirtualConsole.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Kernel/TTY/VirtualConsole.cpp b/Kernel/TTY/VirtualConsole.cpp index 2a65f9ddfda..69cffb2ed7c 100644 --- a/Kernel/TTY/VirtualConsole.cpp +++ b/Kernel/TTY/VirtualConsole.cpp @@ -4,6 +4,7 @@ #include "kmalloc.h" #include #include +#include static u8* s_vga_buffer; static VirtualConsole* s_consoles[6]; @@ -101,6 +102,7 @@ void VirtualConsole::set_active(bool b) m_active = b; if (!m_active) { memcpy(m_buffer, m_current_vga_window, rows() * columns() * 2); + KeyboardDevice::the().set_client(nullptr); return; } @@ -108,9 +110,7 @@ void VirtualConsole::set_active(bool b) set_vga_start_row(0); flush_vga_cursor(); -#if 0 - Keyboard::the().set_client(this); -#endif + KeyboardDevice::the().set_client(this); } inline bool is_valid_parameter_character(u8 ch)