From b78f22b6982507d58dbbf0674458d8dec1e3c86c Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Wed, 19 Nov 2025 14:43:43 +0800 Subject: [PATCH] fix: remove redundant ESC key event listener for dialog --- assets/js/theme.js | 6 ------ layouts/_partials/init/index.html | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/assets/js/theme.js b/assets/js/theme.js index ab1c9de4..0ecedb4a 100644 --- a/assets/js/theme.js +++ b/assets/js/theme.js @@ -677,12 +677,6 @@ class FixIt { dialog.addEventListener("click", (e) => { dialog.close(); }); - dialog.addEventListener("keydown", (e) => { - // ensure Escape key closes the dialog (for robustness) - if (e.key === "Escape" && dialog.open) { - dialog.close(); - } - }); } /** diff --git a/layouts/_partials/init/index.html b/layouts/_partials/init/index.html index f5f967ff..2a62b4fc 100644 --- a/layouts/_partials/init/index.html +++ b/layouts/_partials/init/index.html @@ -1,4 +1,4 @@ -{{- hugo.Store.Set "version" "v0.4.0-alpha.3-20251119062632-30453747" -}} +{{- hugo.Store.Set "version" "v0.4.0-alpha.3-20251119064345-c8223a75" -}} {{- .Store.Set "this" dict -}} {{- partial "init/detection-env.html" . -}}