1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:38:11 +00: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:
Lucas CHOLLET 2023-03-08 18:31:53 -05:00 committed by Jelle Raaijmakers
parent 0b14ef134d
commit baac824ee3
4 changed files with 12 additions and 7 deletions

View file

@ -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) {