summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2019-11-03 15:43:27 +0200
committersiikamiika <siikamiika@users.noreply.github.com>2019-11-23 17:45:44 +0200
commit8825c481b5139ce41ad227da4d7e8725666aa072 (patch)
tree0a816e90b4593fe6ba7826fa6017e77110c700a8 /ext
parent5a3e8c819c94be628101311e53c164b0cdd234b4 (diff)
respect text selection option in query parser
Diffstat (limited to 'ext')
-rw-r--r--ext/bg/js/search-query-parser.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/bg/js/search-query-parser.js b/ext/bg/js/search-query-parser.js
index 8c3159cd..dfab0d9a 100644
--- a/ext/bg/js/search-query-parser.js
+++ b/ext/bg/js/search-query-parser.js
@@ -32,7 +32,8 @@ class QueryParser {
}
onClick(e) {
- this.onTermLookup(e, {disableScroll: true, selectText: true});
+ const selectText = this.search.options.scanning.selectText;
+ this.onTermLookup(e, {disableScroll: true, selectText});
}
onMouseEnter(e) {
@@ -52,7 +53,8 @@ class QueryParser {
return;
}
- this.onTermLookup(e, {disableScroll: true, selectText: true, disableHistory: true});
+ const selectText = this.search.options.scanning.selectText;
+ this.onTermLookup(e, {disableScroll: true, disableHistory: true, selectText});
}
onTermLookup(e, params) {