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:
parent
0b14ef134d
commit
baac824ee3
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