WolfsblvtandCohee e52c035fcd Add allowEscapeClose option to popup class for Escape key behavior override (#5340)
* feat(popup): add allowEscapeClose option to override default escape key behavior

Add `allowEscapeClose` parameter to PopupOptions to explicitly control whether Escape key closes the popup, overriding the default logic that checks for visible cancel/close buttons. When null (default), uses existing behavior; when true, allows escape even without buttons; when false, prevents escape even with buttons present.

* feat(popup): enable Escape key closing for informational popups

Add `allowEscapeClose: true` option to TEXT-type popups in export preset, persona lore, sampler select, stats, and world info assignment dialogs to allow users to dismiss these informational popups with the Escape key.

* Improve Escape key interaction in popups

* Adjust jsdoc for allowEscapeClose

* Always return CANCELLED on Escape

* fix(popup): correct jsdoc for allowEscapeClose property description

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2026-03-24 01:11:38 +02:00
2025-07-22 23:34:41 +03:00
…
2026-03-20 00:28:06 +02:00
2026-03-15 23:35:22 +02:00
2026-03-15 23:35:22 +02:00
…
2025-07-19 21:02:16 +03:00
…
2025-07-21 00:24:49 +03:00
…
2026-03-20 00:28:06 +02:00
2025-07-27 14:13:53 +03:00
2025-07-17 13:49:15 +00:00
2025-07-21 00:24:49 +03:00
2025-12-02 10:45:59 +00:00
S
Description
LLM Frontend for Power Users.
https://sillytavern.app Readme AGPL-3.0
376 MiB
Languages
JavaScript 88.7%
HTML 8.1%
CSS 2.8%
Less 0.3%