search improvements 4
All checks were successful
Build Org Website / build (push) Successful in 50s

This commit is contained in:
2026-05-13 23:26:54 +01:00
parent b84f5d2691
commit c9cf182138

View File

@@ -412,7 +412,10 @@ if (searchInput && searchBtn && paneInput && modalResults && paneCount) {
} }
}); });
pane.addEventListener("click", (e) => e.stopPropagation()); pane.addEventListener("click", (e) => {
if (e.target.closest("[data-search-close]")) closeSearchPane();
e.stopPropagation();
});
document.addEventListener("keydown", (e) => { document.addEventListener("keydown", (e) => {
if ((e.metaKey || e.ctrlKey) && e.key.toLowerCase() === "k") { if ((e.metaKey || e.ctrlKey) && e.key.toLowerCase() === "k") {