1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 22:58:11 +00:00

LibGUI: Don't invoke non-visible shortcuts

This commit is contained in:
Tim Ledbetter 2023-03-04 15:02:45 +00:00 committed by Jelle Raaijmakers
parent 8ffe91c2f7
commit 5ed78d39dd

View file

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