From f5dec55fd69e2dd73e73e4acf8b033eb6eabd892 Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Sun, 14 Jan 2024 19:17:35 +0100 Subject: [PATCH] Kernel: Correct mapping of PS/2 keyboard exclamation point Pressing Shift+1 resulted in `Key_Escape` being sent as the event's key. --- Kernel/Devices/HID/PS2/KeyboardDevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/Devices/HID/PS2/KeyboardDevice.cpp b/Kernel/Devices/HID/PS2/KeyboardDevice.cpp index 3f5eedba65..c6ce4291be 100644 --- a/Kernel/Devices/HID/PS2/KeyboardDevice.cpp +++ b/Kernel/Devices/HID/PS2/KeyboardDevice.cpp @@ -50,7 +50,7 @@ static constexpr KeyCodeEntry unshifted_scan_code_set1_key_map[0x80] = { // clang-format off static constexpr KeyCodeEntry shifted_scan_code_set1_key_map[0x100] = { - { Key_Invalid, 0xFF }, { Key_Escape, 1 }, { Key_Escape, 2 }, { Key_AtSign, 3 }, + { Key_Invalid, 0xFF }, { Key_Escape, 1 }, { Key_ExclamationPoint, 2 }, { Key_AtSign, 3 }, { Key_Hashtag, 4 }, { Key_Dollar, 5 }, { Key_Percent, 6 }, { Key_Circumflex, 7 }, { Key_Ampersand, 8 }, { Key_Asterisk, 9 }, { Key_LeftParen, 0x0A }, { Key_RightParen, 0x0B }, { Key_Underscore, 0xC }, { Key_Plus, 0x4E }, { Key_Backspace, 0x0E }, { Key_Tab, 0x0F },