Kernel: Fix keymap numlock behaviour

This commit is contained in:
Bananymous 2023-03-29 03:18:05 +03:00
parent f4b4987d43
commit 7f90079ea7
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;
}
}