Move searchTerms/searchKanji to front of object definitions (#873)

This commit is contained in:
toasted-nutbread 2020-09-27 11:53:07 -04:00 committed by GitHub
parent 3b6e3193ae
commit 6b6ee76550
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 42 additions and 26 deletions

View File

@ -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,6 +436,14 @@
"type": "boolean",
"default": false
},
"searchTerms": {
"type": "boolean",
"default": true
},
"searchKanji": {
"type": "boolean",
"default": true
},
"scanOnTouchMove": {
"type": "boolean",
"default": true
@ -452,14 +460,6 @@
"type": "boolean",
"default": false
},
"searchTerms": {
"type": "boolean",
"default": true
},
"searchKanji": {
"type": "boolean",
"default": true
},
"preventTouchScrolling": {
"type": "boolean",
"default": true

View File

@ -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) {

View File

@ -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
}
}]

View File

@ -120,12 +120,28 @@ class TextScanner extends EventDispatcher {
include,
exclude,
types,
options: {scanOnTouchMove, scanOnPenHover, scanOnPenPress, scanOnPenRelease, searchTerms, searchKanji, preventTouchScrolling}
options: {
searchTerms,
searchKanji,
scanOnTouchMove,
scanOnPenHover,
scanOnPenPress,
scanOnPenRelease,
preventTouchScrolling
}
}) => ({
include: this._getInputArray(include),
exclude: this._getInputArray(exclude),
types: this._getInputTypeSet(types),
options: {scanOnTouchMove, scanOnPenHover, scanOnPenPress, scanOnPenRelease, searchTerms, searchKanji, preventTouchScrolling}
options: {
searchTerms,
searchKanji,
scanOnTouchMove,
scanOnPenHover,
scanOnPenPress,
scanOnPenRelease,
preventTouchScrolling
}
}));
}
if (typeof deepContentScan === 'boolean') {

View File

@ -333,12 +333,12 @@ function createProfileOptionsUpdatedTestData1() {
},
options: {
showAdvanced: false,
searchTerms: true,
searchKanji: true,
scanOnTouchMove: true,
scanOnPenHover: true,
scanOnPenPress: true,
scanOnPenRelease: false,
searchTerms: true,
searchKanji: true,
preventTouchScrolling: true
}
},
@ -352,12 +352,12 @@ function createProfileOptionsUpdatedTestData1() {
},
options: {
showAdvanced: false,
searchTerms: true,
searchKanji: true,
scanOnTouchMove: true,
scanOnPenHover: true,
scanOnPenPress: true,
scanOnPenRelease: false,
searchTerms: true,
searchKanji: true,
preventTouchScrolling: true
}
},
@ -371,12 +371,12 @@ function createProfileOptionsUpdatedTestData1() {
},
options: {
showAdvanced: false,
searchTerms: true,
searchKanji: true,
scanOnTouchMove: true,
scanOnPenHover: true,
scanOnPenPress: true,
scanOnPenRelease: false,
searchTerms: true,
searchKanji: true,
preventTouchScrolling: true
}
}