feat: add ESC key support to close event details modal and bump version to v0.6.0

This commit is contained in:
herel committed 2025-11-11 08:51:58 +01:00
1 parent b04e8e2900
commit 6a240c5773
2 files changed
+8 -1

No files matched your search

+7
View File
@@ -131,6 +131,13 @@
}
});
// Close modal when pressing ESC key
document.addEventListener("keydown", (e) => {
if (e.key === "Escape" && !eventDetailsModal.classList.contains("hidden")) {
eventDetailsModal.classList.add("hidden");
}
});
// If we have an API key but no userInfo, fetch it from the server
if (storedApiKey && !userInfo) {
fetch(`${apiBaseUrl}/userinfo`, {