Move searchTerms/searchKanji to front of object definitions (#873)
This commit is contained in:
parent
3b6e3193ae
commit
6b6ee76550
@ -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
|
||||
|
@ -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) {
|
||||
|
@ -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
|
||||
}
|
||||
}]
|
||||
|
@ -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') {
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user