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); } }