1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:58:11 +00:00

Kernel: Replace char and u8 data types to u32 for code point

Remove character property from event and add code_point property.
This commit is contained in:
Hüseyin ASLITÜRK 2020-06-11 21:26:05 +03:00 committed by Andreas Kling
parent 1887e35dc8
commit 174987f930
4 changed files with 10 additions and 10 deletions

View file

@ -265,7 +265,7 @@ void KeyboardDevice::key_state_changed(u8 scan_code, bool pressed)
event.flags = m_modifiers;
event.e0_prefix = m_has_e0_prefix;
event.caps_lock_on = m_caps_lock_on;
event.character = m_character_map.get_char(event);
event.code_point = m_character_map.get_char(event);
if (pressed)
event.flags |= Is_Press;