Kernel: Fix keymap numlock behaviour

This commit is contained in:
Bananymous 2023-03-29 03:18:05 +03:00
parent 16d9d29971
commit 426b1482dd
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}