mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 17:52:26 -05:00
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.
This commit is contained in:
parent
d8fa8c5f82
commit
c969b8390d
Notes:
sideshowbarker
2024-07-19 17:33:06 +09:00
Author: https://github.com/fraang Commit: https://github.com/SerenityOS/serenity/commit/c969b8390d4 Pull-request: https://github.com/SerenityOS/serenity/pull/2804
1 changed files with 1 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue