1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:48:12 +00:00

WindowServer: Replace character with code point

Replace u8 data type width u32. Remove character property from event and add code_point property for represent UTF-8 character.
This commit is contained in:
Hüseyin ASLITÜRK 2020-06-13 14:02:00 +03:00 committed by Andreas Kling
parent 25e14911c5
commit 2f7e5a5e40
5 changed files with 10 additions and 10 deletions

View file

@ -302,7 +302,7 @@ void Window::event(Core::Event& event)
case Event::KeyDown:
m_client->post_message(
Messages::WindowClient::KeyDown(m_window_id,
(u8) static_cast<const KeyEvent&>(event).character(),
(u32) static_cast<const KeyEvent&>(event).code_point(),
(u32) static_cast<const KeyEvent&>(event).key(),
static_cast<const KeyEvent&>(event).modifiers(),
(u32) static_cast<const KeyEvent&>(event).scancode()));
@ -310,7 +310,7 @@ void Window::event(Core::Event& event)
case Event::KeyUp:
m_client->post_message(
Messages::WindowClient::KeyUp(m_window_id,
(u8) static_cast<const KeyEvent&>(event).character(),
(u32) static_cast<const KeyEvent&>(event).code_point(),
(u32) static_cast<const KeyEvent&>(event).key(),
static_cast<const KeyEvent&>(event).modifiers(),
(u32) static_cast<const KeyEvent&>(event).scancode()));