diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-29 12:32:55 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-29 12:32:55 +0300 |
commit | f3f8d328ef14b3e454b5612dfc4c02c71130f92d (patch) | |
tree | 22871fe6e72acd1f48b11c92a803a217d9a6d4fe /src/ui/util.c | |
parent | 6dc49edb93b6e9099a97b502fde246619bbc49c8 (diff) |
Fixed: Keyboard shortcuts stop working
Menus can't be disabled or otherwise their items can't be triggered
any more. Hidden menus are still supposed to receive key events.
IssueID #224
Diffstat (limited to 'src/ui/util.c')
-rw-r--r-- | src/ui/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/util.c b/src/ui/util.c index 2996bfd5..64b32bad 100644 --- a/src/ui/util.c +++ b/src/ui/util.c | |||
@@ -618,7 +618,7 @@ void openMenuFlags_Widget(iWidget *d, iInt2 coord, iBool postCommands) { | |||
618 | } | 618 | } |
619 | /* Menu closes when commands are emitted, so handle any pending ones beforehand. */ | 619 | /* Menu closes when commands are emitted, so handle any pending ones beforehand. */ |
620 | processEvents_App(postedEventsOnly_AppEventMode); | 620 | processEvents_App(postedEventsOnly_AppEventMode); |
621 | setFlags_Widget(d, hidden_WidgetFlag | disabled_WidgetFlag, iFalse); | 621 | setFlags_Widget(d, hidden_WidgetFlag, iFalse); |
622 | setFlags_Widget(d, commandOnMouseMiss_WidgetFlag, iTrue); | 622 | setFlags_Widget(d, commandOnMouseMiss_WidgetFlag, iTrue); |
623 | raise_Widget(d); | 623 | raise_Widget(d); |
624 | setFlags_Widget(findChild_Widget(d, "menu.cancel"), disabled_WidgetFlag, iFalse); | 624 | setFlags_Widget(findChild_Widget(d, "menu.cancel"), disabled_WidgetFlag, iFalse); |
@@ -700,7 +700,7 @@ void openMenuFlags_Widget(iWidget *d, iInt2 coord, iBool postCommands) { | |||
700 | } | 700 | } |
701 | 701 | ||
702 | void closeMenu_Widget(iWidget *d) { | 702 | void closeMenu_Widget(iWidget *d) { |
703 | setFlags_Widget(d, hidden_WidgetFlag | disabled_WidgetFlag, iTrue); | 703 | setFlags_Widget(d, hidden_WidgetFlag, iTrue); |
704 | setFlags_Widget(findChild_Widget(d, "menu.cancel"), disabled_WidgetFlag, iTrue); | 704 | setFlags_Widget(findChild_Widget(d, "menu.cancel"), disabled_WidgetFlag, iTrue); |
705 | postRefresh_App(); | 705 | postRefresh_App(); |
706 | postCommand_Widget(d, "menu.closed"); | 706 | postCommand_Widget(d, "menu.closed"); |