From 7f90079ea7cad735a12b876a633c31ff9ccf31d4 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Wed, 29 Mar 2023 03:18:05 +0300 Subject: [PATCH] Kernel: Fix keymap numlock behaviour --- kernel/kernel/Input/PS2Keymap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/kernel/Input/PS2Keymap.cpp b/kernel/kernel/Input/PS2Keymap.cpp index 559d8a6e..94df70a3 100644 --- a/kernel/kernel/Input/PS2Keymap.cpp +++ b/kernel/kernel/Input/PS2Keymap.cpp @@ -312,7 +312,7 @@ namespace Kernel::Input Key key = keymap[scancode]; - if (dummy.num_lock() && !(dummy.shift() || dummy.ctrl() || dummy.alt())) + if (!dummy.num_lock() || dummy.shift() || dummy.ctrl() || dummy.alt()) { switch (key) { @@ -354,7 +354,7 @@ namespace Kernel::Input } } - return keymap[scancode]; + return key; } } \ No newline at end of file