Browse Source

LibGUI: Don't invoke non-visible shortcuts

Tim Ledbetter 2 years ago
parent
commit
5ed78d39dd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Userland/Libraries/LibGUI/Action.cpp

+ 1 - 1
Userland/Libraries/LibGUI/Action.cpp

@@ -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();