foundryvtt / foundryvtt

Public issue tracking and documentation for Foundry Virtual Tabletop - software connecting RPG gamers in a shared multiplayer environment with an intuitive interface and powerful API.
https://foundryvtt.com/
192 stars 10 forks source link

Ensure an Application actually closed when pressing the DISMISS keybinding before moving on to other potential keybinding actions. #10784

Closed Fyorl closed 2 weeks ago

Fyorl commented 2 weeks ago

Originally reported by lordufreeman https://discord.com/channels/170995199584108546/1184176415139184731/1233568795335852122

ALL MODULES DISABLED? true OS, Hosting, Browser (if applicable): Chrome/Oracle Cloud/Windows 10, V12 Testing 1, DnD5e 3.1.2 Short Description of bug: Hitting the Escape (ESC) key while having a Foundry window opened and no token selected closes the window as expected - BUT does bring up the ESC options menu at the same time. If a token is selected, it is unselected at the same time but the settings menu does not pen.

This behaviour differs from V11 where the first ESC press closed the window, 2nd unselected the selected token and third brought up the ESC settings. Simple steps to reproduce the bug: Open a window (sheet, configure settings window, ...) and hit ESC. Screenshots and/or console errors: -