This commit is contained in:
@@ -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") {
|
||||||
|
|||||||
Reference in New Issue
Block a user