mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:47:35 +00:00
LibGUI: Don't invoke non-visible shortcuts
This commit is contained in:
parent
8ffe91c2f7
commit
5ed78d39dd
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue