1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:27:45 +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

@ -208,7 +208,7 @@ void TerminalWidget::keydown_event(GUI::KeyEvent& event)
{
// We specifically need to process shortcuts before input to the Terminal is done
// since otherwise escape sequences will eat all our shortcuts for dinner.
window()->propagate_shortcuts_up_to_application(event, this);
window()->propagate_shortcuts(event, this);
if (event.is_accepted())
return;