mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 09:39:39 +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:
parent
25e14911c5
commit
2f7e5a5e40
Notes:
sideshowbarker
2024-07-19 05:37:42 +09:00
Author: https://github.com/asliturk
Commit: 2f7e5a5e40
Pull-request: https://github.com/SerenityOS/serenity/pull/2541
5 changed files with 10 additions and 10 deletions
|
@ -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()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue