mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 11:36:22 +00:00
LibGUI: Don't invoke non-visible shortcuts
This commit is contained in:
parent
8ffe91c2f7
commit
5ed78d39dd
Notes:
sideshowbarker
2024-07-16 23:38:54 +09:00
Author: https://github.com/tcl3
Commit: 5ed78d39dd
Pull-request: https://github.com/SerenityOS/serenity/pull/17750
Reviewed-by: https://github.com/kleinesfilmroellchen ✅
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ Action::~Action()
|
|||
|
||||
void Action::process_event(Window& window, Event& event)
|
||||
{
|
||||
if (is_enabled()) {
|
||||
if (is_enabled() && is_visible()) {
|
||||
flash_menubar_menu(window);
|
||||
activate();
|
||||
event.accept();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue