소스 검색

Kernel: Correct mapping of PS/2 keyboard exclamation point

Pressing Shift+1 resulted in `Key_Escape` being sent as the event's key.
Jelle Raaijmakers 1 년 전
부모
커밋
f5dec55fd6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Kernel/Devices/HID/PS2/KeyboardDevice.cpp

+ 1 - 1
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 },