From 6a240c5773357b9c13c046a4d1743c95659357c3 Mon Sep 17 00:00:00 2001 From: Rene Luria Date: Tue, 11 Nov 2025 08:51:58 +0100 Subject: [PATCH] feat: add ESC key support to close event details modal and bump version to v0.6.0 --- index.html | 7 +++++++ pyproject.toml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 24d7d10..cf74d20 100644 --- a/index.html +++ b/index.html @@ -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`, { diff --git a/pyproject.toml b/pyproject.toml index 05803a6..20733da 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "myice" -version = "v0.5.9" +version = "v0.6.0" description = "myice parsing" authors = [ { name = "Rene Luria", "email" = ""},