1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

Revert "Desktop: Fixes #5850: Editor loses cursor focus when Ctrl+F search is closed (#5919)"

This reverts commit b98e64c881.

Ref: https://github.com/laurent22/joplin/issues/6035
This commit is contained in:
Laurent Cozic
2022-01-19 08:59:04 +00:00
parent 360293949c
commit c668bb0370
2 changed files with 1 additions and 3 deletions

View File

@@ -64,7 +64,7 @@ export default function useEditorSearch(CodeMirror: any) {
}
if (match) {
if (scrollTo) cm.setSelection(match.from, match.to);
if (scrollTo) cm.scrollIntoView(match);
return cm.markText(match.from, match.to, { className: 'cm-search-marker-selected' });
}