fix: remove redundant ESC key event listener for dialog

This commit is contained in:
Cell
2025-11-19 14:43:43 +08:00
parent c8223a756b
commit b78f22b698
2 changed files with 1 additions and 7 deletions
-6
View File
@@ -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();
}
});
}
/**
+1 -1
View File
@@ -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" . -}}