mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 09:49:15 +03:00
Kernel: Restore alt+n hijacking for virtual console switching
This commit is contained in:
parent
e4826276d1
commit
dffdd5545a
Notes:
sideshowbarker
2024-07-19 12:42:54 +09:00
Author: https://github.com/deoxxa Commit: https://github.com/SerenityOS/serenity/commit/dffdd5545a3 Pull-request: https://github.com/SerenityOS/serenity/pull/447
@ -4,6 +4,7 @@
|
||||
#include "kmalloc.h"
|
||||
#include <AK/AKString.h>
|
||||
#include <Kernel/Arch/i386/CPU.h>
|
||||
#include <Kernel/Devices/KeyboardDevice.h>
|
||||
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user