fix(editor): preserve snippet navigation after dismissing completion
This commit is contained in:
6 files changed
+468
-10
No files matched your search
@@ -317,6 +317,10 @@ function openReplace(): boolean {
|
||||
|
||||
function closeSearch() {
|
||||
const wasVisible = searchVisible.value;
|
||||
// Escape also reaches this command while editing. A hidden panel must not
|
||||
// dispatch a selection reset, which would dismiss completion before its
|
||||
// Escape handler can consume the key and preserve snippet navigation.
|
||||
if (!wasVisible) return false;
|
||||
searchVisible.value = false;
|
||||
showReplace.value = false;
|
||||
clearDocumentSearchUpdate();
|
||||
|
||||
Reference in new issue
Block a user