mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:57:45 +00:00
Userland: Actually use the correct character map index from KeyEvent
Instead of using a scan code, which for scan code set 2 will not represent the expected character mapping index, we could just use another variable in the KeyEvent structure that correctly points to the character index. This change is mostly relevant to the KeyboardMapper application, and also to the WindowServer code, as both handle KeyEvents and need to use the character mapping index in various situations.
This commit is contained in:
parent
b89cc81674
commit
60a96b3786
9 changed files with 41 additions and 32 deletions
|
@ -15,8 +15,8 @@ endpoint WindowClient
|
|||
window_left(i32 window_id) =|
|
||||
window_input_preempted(i32 window_id) =|
|
||||
window_input_restored(i32 window_id) =|
|
||||
key_down(i32 window_id, u32 code_point, u32 key, u32 modifiers, u32 scancode) =|
|
||||
key_up(i32 window_id, u32 code_point, u32 key, u32 modifiers, u32 scancode) =|
|
||||
key_down(i32 window_id, u32 code_point, u32 key, u8 map_entry_index, u32 modifiers, u32 scancode) =|
|
||||
key_up(i32 window_id, u32 code_point, u32 key, u8 map_entry_index, u32 modifiers, u32 scancode) =|
|
||||
window_activated(i32 window_id) =|
|
||||
window_deactivated(i32 window_id) =|
|
||||
window_state_changed(i32 window_id, bool minimized, bool maximized, bool occluded) =|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue