mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-02 16:33:13 +00:00
LibGUI: Flash menubar when using command palette
This commit is contained in:
parent
048ed64c26
commit
c20f1e06c0
Notes:
sideshowbarker
2024-07-17 20:00:29 +09:00
Author: https://github.com/bugreport0
Commit: c20f1e06c0
Pull-request: https://github.com/SerenityOS/serenity/pull/12199
3 changed files with 6 additions and 7 deletions
|
@ -173,7 +173,7 @@ void WindowServerConnection::key_down(i32 window_id, u32 code_point, u32 key, u3
|
|||
|
||||
if (auto* action = action_for_key_event(*window, *key_event)) {
|
||||
if (action->is_enabled()) {
|
||||
action->flash_menubar_menu();
|
||||
action->flash_menubar_menu(*window);
|
||||
action->activate();
|
||||
return;
|
||||
}
|
||||
|
@ -202,6 +202,7 @@ void WindowServerConnection::key_down(i32 window_id, u32 code_point, u32 key, u3
|
|||
return;
|
||||
auto* action = command_palette->selected_action();
|
||||
VERIFY(action);
|
||||
action->flash_menubar_menu(*window);
|
||||
action->activate();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue