diff options
author | Florian Angermeier <florian.angermeier+git@postfach.or.at> | 2020-07-15 04:23:42 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-17 00:36:50 +0200 |
commit | c969b8390d4ed1f37b0ebbb1c93690c2f4d3bd65 (patch) | |
tree | 566d334c8669b66e551b1e10a437a377e50fca79 /Kernel/Devices/KeyboardDevice.cpp | |
parent | d8fa8c5f8278ff89da6a8433f32bd9a564aaa3ad (diff) | |
download | serenity-c969b8390d4ed1f37b0ebbb1c93690c2f4d3bd65.zip |
Kernel: Make all 6 VirtualConsoles available via shortcut
Add all 6 shortcuts even if the switch between VirtualConsoles is
currently not available in the graphical console.
Also make the case statement more compact.
Diffstat (limited to 'Kernel/Devices/KeyboardDevice.cpp')
-rw-r--r-- | Kernel/Devices/KeyboardDevice.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Kernel/Devices/KeyboardDevice.cpp b/Kernel/Devices/KeyboardDevice.cpp index 20e26da491..3638fa1d8b 100644 --- a/Kernel/Devices/KeyboardDevice.cpp +++ b/Kernel/Devices/KeyboardDevice.cpp @@ -321,10 +321,7 @@ void KeyboardDevice::handle_irq(const RegisterState&) default: if (m_modifiers & Mod_Alt) { switch (ch) { - case 0x02: // 1 - case 0x03: // 2 - case 0x04: // 3 - case 0x05: // 4 + case 0x02 ... 0x07: // 1 to 6 VirtualConsole::switch_to(ch - 0x02); break; default: |