mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-25 17:15:44 +00:00
LibGUI+WindowServer: Flash menubar menu when using a keyboard shortcut
Briefly flash the menubar menu containing the keyboard shortcut action to give the user immediate visual feedback on their interaction with the system.
This commit is contained in:
committed by
Andreas Kling
parent
ed0f4bdfaf
commit
6c049ea4c4
@@ -172,6 +172,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->activate();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user