Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ui): main menu toggles normally #1682

Merged
merged 1 commit into from
Aug 18, 2024

Conversation

obrenckle
Copy link
Contributor

@obrenckle obrenckle commented Aug 16, 2024

This PR tentatively fixes the main menu not being toggled with the escape key, except with a token selected.

Hitting the escape key triggers the first of a bunch of ui changes. The ones that interest us here are:

  • close at least a window
  • unselect a token
  • toggle the main menu

The group manager/destiny tracker is always open, so "close a window" was always triggered on it, but its close method doesn't actually close it, as it mus remain visible. Instead it contains the main menu toggle code.

No window being actually closed means we stop at "unselect a token" if one is selected, or "toggle the main menu" again if not.

Tentatively because I couldn't find why the main menu toggle code was here, and I'm not sure if I'm not missing something.

Closes #1670

@obrenckle obrenckle closed this Aug 18, 2024
@obrenckle obrenckle deleted the fix_escape_menu branch August 18, 2024 16:35
@obrenckle obrenckle restored the fix_escape_menu branch August 18, 2024 16:35
@obrenckle obrenckle reopened this Aug 18, 2024
@wrycu wrycu merged commit 222f2ed into StarWarsFoundryVTT:main Aug 18, 2024
@obrenckle obrenckle deleted the fix_escape_menu branch August 19, 2024 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Selecting a token breaks escape menu
2 participants