respect text selection option in query parser

This commit is contained in:
siikamiika 2019-11-03 15:43:27 +02:00
parent 5a3e8c819c
commit 8825c481b5

View File

@ -32,7 +32,8 @@ class QueryParser {
} }
onClick(e) { onClick(e) {
this.onTermLookup(e, {disableScroll: true, selectText: true}); const selectText = this.search.options.scanning.selectText;
this.onTermLookup(e, {disableScroll: true, selectText});
} }
onMouseEnter(e) { onMouseEnter(e) {
@ -52,7 +53,8 @@ class QueryParser {
return; 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) { onTermLookup(e, params) {