mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:38:12 +00:00
Kernel: Add a Keypad modifier to the numpad Enter key
This commit is contained in:
parent
33921e75c9
commit
c261e5e39b
1 changed files with 1 additions and 1 deletions
|
@ -243,6 +243,7 @@ void KeyboardDevice::handle_scan_code_input_event(ScanCodeEvent event)
|
|||
m_right_shift_pressed = event.pressed;
|
||||
update_modifier(Mod_Shift, m_left_shift_pressed || m_right_shift_pressed);
|
||||
break;
|
||||
case 0x1c:
|
||||
case 0x35:
|
||||
if (event.e0_prefix)
|
||||
update_modifier(Mod_Keypad, event.pressed);
|
||||
|
@ -261,7 +262,6 @@ void KeyboardDevice::handle_scan_code_input_event(ScanCodeEvent event)
|
|||
case 0x51:
|
||||
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…
Add table
Add a link
Reference in a new issue