feat: add ESC key support to close event details modal and bump version to v0.6.0
This commit is contained in:
@@ -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 we have an API key but no userInfo, fetch it from the server
|
||||||
if (storedApiKey && !userInfo) {
|
if (storedApiKey && !userInfo) {
|
||||||
fetch(`${apiBaseUrl}/userinfo`, {
|
fetch(`${apiBaseUrl}/userinfo`, {
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "myice"
|
name = "myice"
|
||||||
version = "v0.5.9"
|
version = "v0.6.0"
|
||||||
description = "myice parsing"
|
description = "myice parsing"
|
||||||
authors = [
|
authors = [
|
||||||
{ name = "Rene Luria", "email" = "<rene@luria.ch>"},
|
{ name = "Rene Luria", "email" = "<rene@luria.ch>"},
|
||||||
|
|||||||
Reference in New Issue
Block a user