diff --git a/kernel/kernel/Input/PS2Keymap.cpp b/kernel/kernel/Input/PS2Keymap.cpp index 559d8a6e30..94df70a374 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