LibWeb: Send keydown events to the focused frame

This commit is contained in:
Andreas Kling 2020-08-14 11:38:40 +02:00
parent 6b4a7d1ee3
commit be76abfdb3
Notes: sideshowbarker 2024-07-19 03:39:23 +09:00

View File

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