A module that makes the Escape key smarter about closing windows.
By default, Foundry's Escape key closes every open window simultaneously, including windows you've detached into their own separate browser window using v14's native window-detach feature. This module changes that, via two independently toggleable settings (Settings > Configure Settings > Keep Windows Open), both client-scoped so each player/GM sets their own preference:
- Protect Detached Windows (default: on): Escape will never close a window that's been detached into its own browser window.
- Close One Window at a Time (default: on): Escape closes only the single most-recently-active window instead of every open window at once.
With both settings off, Escape behaves exactly like vanilla Foundry.