From dc66e795a9e947aec0409777fdd12700ef18b673 Mon Sep 17 00:00:00 2001 From: RohitKushvaha01 Date: Sat, 10 Jan 2026 20:45:59 +0530 Subject: [PATCH 1/2] feat: close search dialog with ctrl+f --- src/handlers/quickTools.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/handlers/quickTools.js b/src/handlers/quickTools.js index 6d95b134d..6d0eb9307 100644 --- a/src/handlers/quickTools.js +++ b/src/handlers/quickTools.js @@ -83,7 +83,12 @@ function setupHistoryNavigation() { // Search input history navigation if ($searchInput.el) { $searchInput.el.addEventListener("keydown", (e) => { - if (e.key === "ArrowUp") { + if ((e.ctrlKey || e.metaKey) && e.key.toLowerCase() === 'f') { + e.preventDefault(); + const { editor, activeFile } = editorManager; + editor.focus(); + toggleSearch(); + } else if (e.key === "ArrowUp") { e.preventDefault(); const newValue = searchHistory.navigateSearchUp($searchInput.el.value); $searchInput.el.value = newValue; From da2149d5df85cc72bdca9f1249499a6cf74e4b9c Mon Sep 17 00:00:00 2001 From: RohitKushvaha01 Date: Sat, 10 Jan 2026 20:47:58 +0530 Subject: [PATCH 2/2] format --- src/handlers/quickTools.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers/quickTools.js b/src/handlers/quickTools.js index 6d0eb9307..5a35eb2c5 100644 --- a/src/handlers/quickTools.js +++ b/src/handlers/quickTools.js @@ -83,7 +83,7 @@ function setupHistoryNavigation() { // Search input history navigation if ($searchInput.el) { $searchInput.el.addEventListener("keydown", (e) => { - if ((e.ctrlKey || e.metaKey) && e.key.toLowerCase() === 'f') { + if ((e.ctrlKey || e.metaKey) && e.key.toLowerCase() === "f") { e.preventDefault(); const { editor, activeFile } = editorManager; editor.focus();