From be76abfdb39cd22840a69d226c42c7ec99107252 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 14 Aug 2020 11:38:40 +0200 Subject: [PATCH] LibWeb: Send keydown events to the focused frame --- Libraries/LibWeb/Page/Page.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibWeb/Page/Page.cpp b/Libraries/LibWeb/Page/Page.cpp index 9718d0345e..ed8f6d2d23 100644 --- a/Libraries/LibWeb/Page/Page.cpp +++ b/Libraries/LibWeb/Page/Page.cpp @@ -79,7 +79,7 @@ bool Page::handle_mousemove(const Gfx::IntPoint& position, unsigned buttons, uns bool Page::handle_keydown(KeyCode key, unsigned modifiers, u32 code_point) { - return main_frame().event_handler().handle_keydown(key, modifiers, code_point); + return focused_frame().event_handler().handle_keydown(key, modifiers, code_point); } }