mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
fix: remove redundant ESC key event listener for dialog
This commit is contained in:
@@ -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,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" . -}}
|
||||
|
||||
Reference in New Issue
Block a user