mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 10:18:15 +09:00
LibGUI: Make propagate_shortcuts
handle different level of propagation
First, this patch renames the function `propagate_shortcuts_up_to_application` to `propagate_shortcuts`. Handling those levels, will allow us to differentiate shortcuts at `Window` level and `Application` level. Which will be convenient to handle dialog-specific shortcuts.
This commit is contained in:
parent
0b14ef134d
commit
baac824ee3
Notes:
sideshowbarker
2024-07-17 18:46:57 +09:00
Author: https://github.com/LucasChollet
Commit: baac824ee3
Pull-request: https://github.com/SerenityOS/serenity/pull/17779
Reviewed-by: https://github.com/gmta ✅
4 changed files with 12 additions and 7 deletions
|
@ -751,7 +751,7 @@ void OutOfProcessWebView::notify_server_did_finish_handling_input_event(bool eve
|
|||
|
||||
// NOTE: If other events can ever trigger shortcuts, propagate those here.
|
||||
if (!event.is_accepted() && event.type() == GUI::Event::Type::KeyDown)
|
||||
window()->propagate_shortcuts_up_to_application(event, this);
|
||||
window()->propagate_shortcuts(event, this);
|
||||
}
|
||||
},
|
||||
[this](GUI::MouseEvent& event) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue