Explorar el Código

LibGUI: Don't invoke non-visible shortcuts

Tim Ledbetter hace 2 años
padre
commit
5ed78d39dd
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)
 void Action::process_event(Window& window, Event& event)
 {
 {
-    if (is_enabled()) {
+    if (is_enabled() && is_visible()) {
         flash_menubar_menu(window);
         flash_menubar_menu(window);
         activate();
         activate();
         event.accept();
         event.accept();