From 6f5ad490fb54b4d0431d56cc644c76d62213abd7 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Mon, 26 Apr 2021 21:05:46 -0400 Subject: Add support for restoring the selection after using scanSelectedText (#1631) --- ext/js/app/frontend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/js/app') diff --git a/ext/js/app/frontend.js b/ext/js/app/frontend.js index c7e8c9d8..e1b531d4 100644 --- a/ext/js/app/frontend.js +++ b/ext/js/app/frontend.js @@ -683,7 +683,7 @@ class Frontend { const range = this._getFirstNonEmptySelectionRange(); if (range === null) { return false; } const source = new TextSourceRange(range, range.toString(), null, null); - await this._textScanner.search(source, {focus: true}); + await this._textScanner.search(source, {focus: true, restoreSelection: true}); return true; } -- cgit v1.2.3