We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d301d6b commit b82d3f7Copy full SHA for b82d3f7
1 file changed
src/handlers/quickTools.js
@@ -76,8 +76,11 @@ appSettings.on("update:quicktoolsItems:after", () => {
76
}, 100);
77
});
78
79
+let historyNavigationInitialized = false;
80
// Initialize history navigation
81
function setupHistoryNavigation() {
82
+ if (historyNavigationInitialized) return;
83
+ historyNavigationInitialized = true;
84
const { $searchInput, $replaceInput } = quickTools;
85
86
// Search input history navigation
@@ -87,7 +90,7 @@ function setupHistoryNavigation() {
87
90
e.preventDefault();
88
91
const { editor, activeFile } = editorManager;
89
92
editor.focus();
- toggleSearch();
93
+ actionStack.get("search-bar")?.action();
94
} else if (e.key === "ArrowUp") {
95
96
const newValue = searchHistory.navigateSearchUp($searchInput.el.value);
0 commit comments