mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 01:41:59 -05:00
Kernel: Stop overeagerly adding a Keypad modifier
This commit is contained in:
parent
abf0c8f1a6
commit
33921e75c9
1 changed files with 5 additions and 1 deletions
|
@ -244,6 +244,9 @@ void KeyboardDevice::handle_scan_code_input_event(ScanCodeEvent event)
|
|||
update_modifier(Mod_Shift, m_left_shift_pressed || m_right_shift_pressed);
|
||||
break;
|
||||
case 0x35:
|
||||
if (event.e0_prefix)
|
||||
update_modifier(Mod_Keypad, event.pressed);
|
||||
break;
|
||||
case 0x37:
|
||||
case 0x47:
|
||||
case 0x48:
|
||||
|
@ -259,6 +262,7 @@ void KeyboardDevice::handle_scan_code_input_event(ScanCodeEvent event)
|
|||
case 0x52:
|
||||
case 0x53:
|
||||
// FIXME: This should also include the keypad "enter" key, but that has the same scan code as the return key (0x1c).
|
||||
if (!event.e0_prefix)
|
||||
update_modifier(Mod_Keypad, event.pressed);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue