diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/Page/EventHandler.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/Page/EventHandler.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Page/EventHandler.cpp b/Userland/Libraries/LibWeb/Page/EventHandler.cpp index 0df361d9b0..cfc576e981 100644 --- a/Userland/Libraries/LibWeb/Page/EventHandler.cpp +++ b/Userland/Libraries/LibWeb/Page/EventHandler.cpp @@ -460,6 +460,13 @@ bool EventHandler::handle_keydown(KeyCode key, unsigned modifiers, u32 code_poin return m_frame.active_document()->window().dispatch_event(move(event)); } +bool EventHandler::handle_keyup(KeyCode key, unsigned modifiers, u32 code_point) +{ + auto event = UIEvents::KeyboardEvent::create_from_platform_event(UIEvents::EventNames::keyup, key, modifiers, code_point); + // FIXME: Figure out the right event target. + return m_frame.active_document()->window().dispatch_event(move(event)); +} + void EventHandler::set_mouse_event_tracking_layout_node(Layout::Node* layout_node) { if (layout_node) |