From ff62c262fe87ff6ebe423390d9f1e107eac9b56f Mon Sep 17 00:00:00 2001 From: Bananymous Date: Sun, 18 Aug 2024 20:46:30 +0300 Subject: [PATCH] Kernel: Fix PS/2 scancode set 2 keycodes for the bottom row keys --- kernel/kernel/Input/PS2/Keymap.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kernel/kernel/Input/PS2/Keymap.cpp b/kernel/kernel/Input/PS2/Keymap.cpp index 6f77b3e885..f9fa53d421 100644 --- a/kernel/kernel/Input/PS2/Keymap.cpp +++ b/kernel/kernel/Input/PS2/Keymap.cpp @@ -200,12 +200,12 @@ namespace Kernel::Input m_scancode_to_keycode_normal[0x49] = keycode_normal(3, 10); m_scancode_to_keycode_normal[0x4A] = keycode_normal(3, 11); m_scancode_to_keycode_normal[0x59] = keycode_normal(3, 12); - m_scancode_to_keycode_normal[0x14] = keycode_normal(4, 1); - m_scancode_to_keycode_extended[0x1F] = keycode_normal(4, 2); - m_scancode_to_keycode_normal[0x11] = keycode_normal(4, 3); - m_scancode_to_keycode_normal[0x29] = keycode_normal(4, 4); - m_scancode_to_keycode_extended[0x11] = keycode_normal(4, 5); - m_scancode_to_keycode_extended[0x14] = keycode_normal(4, 6); + m_scancode_to_keycode_normal[0x14] = keycode_normal(4, 0); + m_scancode_to_keycode_extended[0x1F] = keycode_normal(4, 1); + m_scancode_to_keycode_normal[0x11] = keycode_normal(4, 2); + m_scancode_to_keycode_normal[0x29] = keycode_normal(4, 3); + m_scancode_to_keycode_extended[0x11] = keycode_normal(4, 4); + m_scancode_to_keycode_extended[0x14] = keycode_normal(4, 5); m_scancode_to_keycode_normal[0x77] = keycode_numpad(0, 0); m_scancode_to_keycode_extended[0x4A] = keycode_numpad(0, 1);