mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:57:35 +00:00
LibWeb: Fire "keyup" events as well :^)
This was easy, now that we have KeyboardEvent.
This commit is contained in:
parent
554c344ffe
commit
0af0ee4293
10 changed files with 28 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue