From ec55b13e965803befa551b71071024b0624ba263 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Mon, 21 Nov 2022 16:36:26 +0000 Subject: [PATCH] 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. --- Ladybird/WebContentView.cpp | 7 +++++++ Ladybird/WebContentView.h | 1 + 2 files changed, 8 insertions(+) diff --git a/Ladybird/WebContentView.cpp b/Ladybird/WebContentView.cpp index 1af4d2901e..25789514da 100644 --- a/Ladybird/WebContentView.cpp +++ b/Ladybird/WebContentView.cpp @@ -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; +} diff --git a/Ladybird/WebContentView.h b/Ladybird/WebContentView.h index f0c7ff7e06..92bd790607 100644 --- a/Ladybird/WebContentView.h +++ b/Ladybird/WebContentView.h @@ -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, 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);