From 621aa354e77a5f0e7825ff0ad7a66c41154f2511 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 13 Sep 2020 13:25:03 -0400 Subject: Add scan dictionary type filters (#822) * Add options for searchTerms and searchKanji * Add settings HTML * Add options to TextScanner * Update _search/_findDefinitions to include searchTerms/searchKanji args * Update _searchAtFromMouseMove args * Change argument structure for _searchAt * Use scanning options for searchTerms and searchKanji --- ext/bg/js/options.js | 4 +++- ext/bg/js/settings/scan-inputs-controller.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'ext/bg/js') diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js index 673666bb..ccb1f256 100644 --- a/ext/bg/js/options.js +++ b/ext/bg/js/options.js @@ -522,7 +522,9 @@ class OptionsUtil { showAdvanced: false, scanOnPenHover: true, scanOnPenPress: true, - scanOnPenRelease: false + scanOnPenRelease: false, + searchTerms: true, + searchKanji: true }); for (const {options: profileOptions} of options.profiles) { profileOptions.general.usePopupWindow = false; diff --git a/ext/bg/js/settings/scan-inputs-controller.js b/ext/bg/js/settings/scan-inputs-controller.js index 09decaf3..b6498d7c 100644 --- a/ext/bg/js/settings/scan-inputs-controller.js +++ b/ext/bg/js/settings/scan-inputs-controller.js @@ -101,7 +101,9 @@ class ScanInputsController { showAdvanced: false, scanOnPenHover: true, scanOnPenPress: true, - scanOnPenRelease: false + scanOnPenRelease: false, + searchTerms: true, + searchKanji: true } }] }]); -- cgit v1.2.3