mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-08 20:32:56 +03:00
LibWeb: Send keydown events to the focused frame
This commit is contained in:
parent
6b4a7d1ee3
commit
be76abfdb3
Notes:
sideshowbarker
2024-07-19 03:39:23 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/be76abfdb39
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user