mirror of
https://github.com/community-scripts/ProxmoxVE-Local.git
synced 2026-07-07 14:22:22 -04:00
[PR #203] [MERGED] fix/194 Add global Escape-to-close for custom modals #250
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/community-scripts/ProxmoxVE-Local/pull/203
Author: @michelroegl-brunner
Created: 10/20/2025
Status: ✅ Merged
Merged: 10/20/2025
Merged by: @michelroegl-brunner
Base:
main← Head:feat/global-esc-close📝 Commits (1)
cacd4b3feat(modal): add global ESC-to-close via ModalStackProvider; wire all modals; keep danger/auth/loading protected; allow ESC even when typing; fix lint📊 Changes
15 files changed (+93 additions, -6 deletions)
View changed files
📝
src/app/_components/AuthModal.tsx(+2 -0)📝
src/app/_components/ConfirmationModal.tsx(+6 -3)📝
src/app/_components/ErrorModal.tsx(+2 -0)📝
src/app/_components/ExecutionModeModal.tsx(+2 -0)📝
src/app/_components/GeneralSettingsModal.tsx(+2 -0)📝
src/app/_components/HelpModal.tsx(+2 -0)📝
src/app/_components/LXCSettingsModal.tsx(+2 -0)📝
src/app/_components/LoadingModal.tsx(+2 -0)📝
src/app/_components/PublicKeyModal.tsx(+2 -0)📝
src/app/_components/ReleaseNotesModal.tsx(+2 -0)📝
src/app/_components/ScriptDetailModal.tsx(+2 -0)📝
src/app/_components/SettingsModal.tsx(+2 -0)📝
src/app/_components/SetupModal.tsx(+2 -0)➕
src/app/_components/modal/ModalStackProvider.tsx(+57 -0)📝
src/app/layout.tsx(+6 -3)📄 Description
Implements a global ESC-to-close behavior across custom modals.
Key points:
Testing:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.