1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:07:45 +00:00

Ladybird: Add stub for notify_server_did_finish_handling_input_event

This doesn't need to do anything yet, but will do once we start passing
events to web content *before* they're passed to our GUI.
This commit is contained in:
Sam Atkins 2022-11-21 16:36:26 +00:00 committed by Andrew Kaster
parent a1e380cc38
commit ec55b13e96
2 changed files with 8 additions and 0 deletions

View file

@ -1055,3 +1055,10 @@ bool WebContentView::event(QEvent* event)
}
return QAbstractScrollArea::event(event);
}
void WebContentView::notify_server_did_finish_handling_input_event(bool event_was_accepted)
{
// FIXME: Currently Ladybird handles the keyboard shortcuts before passing the event to web content, so
// we don't need to do anything here. But we'll need to once we start asking web content first.
(void)event_was_accepted;
}

View file

@ -156,6 +156,7 @@ public:
virtual Gfx::IntRect notify_server_did_request_minimize_window() override;
virtual Gfx::IntRect notify_server_did_request_fullscreen_window() override;
virtual void notify_server_did_request_file(Badge<WebContentClient>, String const& path, i32) override;
virtual void notify_server_did_finish_handling_input_event(bool event_was_accepted) override;
signals:
void link_hovered(QString, int timeout = 0);