mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-24 00:24:38 +00:00
WindowsServer: Add scancode value to KeyEvent
This commit is contained in:
committed by
Andreas Kling
parent
c6f1962919
commit
9ec6ac31b8
@@ -304,14 +304,16 @@ void Window::event(Core::Event& event)
|
||||
Messages::WindowClient::KeyDown(m_window_id,
|
||||
(u8) static_cast<const KeyEvent&>(event).character(),
|
||||
(u32) static_cast<const KeyEvent&>(event).key(),
|
||||
static_cast<const KeyEvent&>(event).modifiers()));
|
||||
static_cast<const KeyEvent&>(event).modifiers(),
|
||||
(u32) static_cast<const KeyEvent&>(event).scancode()));
|
||||
break;
|
||||
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).key(),
|
||||
static_cast<const KeyEvent&>(event).modifiers()));
|
||||
static_cast<const KeyEvent&>(event).modifiers(),
|
||||
(u32) static_cast<const KeyEvent&>(event).scancode()));
|
||||
break;
|
||||
case Event::WindowActivated:
|
||||
m_client->post_message(Messages::WindowClient::WindowActivated(m_window_id));
|
||||
|
||||
Reference in New Issue
Block a user