summaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-09-27 11:53:07 -0400
committerGitHub <noreply@github.com>2020-09-27 11:53:07 -0400
commit6b6ee765502a7f449bd1682d83716c59f4fa4729 (patch)
tree7159fd2e60f9462166cc929677ef148b9a13b20b /ext/bg
parent3b6e3193ae5e6248ad1405de50a98fb41796bc2e (diff)
Move searchTerms/searchKanji to front of object definitions (#873)
Diffstat (limited to 'ext/bg')
-rw-r--r--ext/bg/data/options-schema.json28
-rw-r--r--ext/bg/js/options.js4
-rw-r--r--ext/bg/js/settings/scan-inputs-controller.js4
3 files changed, 18 insertions, 18 deletions
diff --git a/ext/bg/data/options-schema.json b/ext/bg/data/options-schema.json
index 0b0a9259..0a384766 100644
--- a/ext/bg/data/options-schema.json
+++ b/ext/bg/data/options-schema.json
@@ -352,12 +352,12 @@
},
"options": {
"showAdvanced": false,
+ "searchTerms": true,
+ "searchKanji": true,
"scanOnTouchMove": true,
"scanOnPenHover": true,
"scanOnPenPress": true,
"scanOnPenRelease": false,
- "searchTerms": true,
- "searchKanji": true,
"preventTouchScrolling": false
}
},
@@ -371,12 +371,12 @@
},
"options": {
"showAdvanced": false,
+ "searchTerms": true,
+ "searchKanji": true,
"scanOnTouchMove": true,
"scanOnPenHover": true,
"scanOnPenPress": true,
"scanOnPenRelease": false,
- "searchTerms": true,
- "searchKanji": true,
"preventTouchScrolling": true
}
}
@@ -423,12 +423,12 @@
"type": "object",
"required": [
"showAdvanced",
+ "searchTerms",
+ "searchKanji",
"scanOnTouchMove",
"scanOnPenHover",
"scanOnPenPress",
"scanOnPenRelease",
- "searchTerms",
- "searchKanji",
"preventTouchScrolling"
],
"properties": {
@@ -436,29 +436,29 @@
"type": "boolean",
"default": false
},
- "scanOnTouchMove": {
+ "searchTerms": {
"type": "boolean",
"default": true
},
- "scanOnPenHover": {
+ "searchKanji": {
"type": "boolean",
"default": true
},
- "scanOnPenPress": {
+ "scanOnTouchMove": {
"type": "boolean",
"default": true
},
- "scanOnPenRelease": {
+ "scanOnPenHover": {
"type": "boolean",
- "default": false
+ "default": true
},
- "searchTerms": {
+ "scanOnPenPress": {
"type": "boolean",
"default": true
},
- "searchKanji": {
+ "scanOnPenRelease": {
"type": "boolean",
- "default": true
+ "default": false
},
"preventTouchScrolling": {
"type": "boolean",
diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js
index f83dad6d..19a5cc2c 100644
--- a/ext/bg/js/options.js
+++ b/ext/bg/js/options.js
@@ -522,12 +522,12 @@ class OptionsUtil {
}
const createInputDefaultOptions = () => ({
showAdvanced: false,
+ searchTerms: true,
+ searchKanji: true,
scanOnTouchMove: true,
scanOnPenHover: true,
scanOnPenPress: true,
scanOnPenRelease: false,
- searchTerms: true,
- searchKanji: true,
preventTouchScrolling: true
});
for (const {options: profileOptions} of options.profiles) {
diff --git a/ext/bg/js/settings/scan-inputs-controller.js b/ext/bg/js/settings/scan-inputs-controller.js
index 5da0d5e1..ec2758cb 100644
--- a/ext/bg/js/settings/scan-inputs-controller.js
+++ b/ext/bg/js/settings/scan-inputs-controller.js
@@ -99,12 +99,12 @@ class ScanInputsController {
types: {mouse: true, touch: false, pen: false},
options: {
showAdvanced: false,
+ searchTerms: true,
+ searchKanji: true,
scanOnTouchMove: true,
scanOnPenHover: true,
scanOnPenPress: true,
scanOnPenRelease: false,
- searchTerms: true,
- searchKanji: true,
preventTouchScrolling: true
}
}]