From 36a6d72586d94d6eba4714ff972fae5e333eafe1 Mon Sep 17 00:00:00 2001 From: Nirmal Kumar R Date: Sun, 31 May 2026 00:43:28 +0530 Subject: [PATCH] fix: prevent event bubbling on save-as input keydown to avoid triggering parent listeners --- src/index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.html b/src/index.html index 17114ca..09ec8d4 100644 --- a/src/index.html +++ b/src/index.html @@ -1609,6 +1609,7 @@ } }); inp.addEventListener("keydown", (e) => { + e.stopPropagation(); if (e.key === "Enter") document.getElementById("d-saveas-ok").click(); });