aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/data/options-schema.json
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-09-09 16:59:03 -0400
committerGitHub <noreply@github.com>2020-09-09 16:59:03 -0400
commit0d00f7e1cf8a0fa1e2b1aa2732bceaae39f4e23c (patch)
tree92b0a2e72ef2cecb31e8cc70da354ee43b87e2b4 /ext/bg/data/options-schema.json
parentacb7ad32f39c40b879400c9daa4bc8cd25585ba7 (diff)
Scanning input generalization (#789)
* Add inputs to options.scanning * Update CSS for mouse buttons * Update list counters * Set up HTML/CSS * Add input controller * Use new inputs * Include mouse buttons * Update how button inputs are detected * Add index/empty fields to the input details object * Update none check for scanning modifier * Remove old settings * Remove unused global
Diffstat (limited to 'ext/bg/data/options-schema.json')
-rw-r--r--ext/bg/data/options-schema.json34
1 files changed, 25 insertions, 9 deletions
diff --git a/ext/bg/data/options-schema.json b/ext/bg/data/options-schema.json
index 52d96db9..17fe096c 100644
--- a/ext/bg/data/options-schema.json
+++ b/ext/bg/data/options-schema.json
@@ -318,7 +318,7 @@
"scanning": {
"type": "object",
"required": [
- "middleMouse",
+ "inputs",
"touchInputEnabled",
"selectText",
"alphanumeric",
@@ -336,9 +336,30 @@
"layoutAwareScan"
],
"properties": {
- "middleMouse": {
- "type": "boolean",
- "default": true
+ "inputs": {
+ "type": "array",
+ "default": [
+ {
+ "include": "shift",
+ "exclude": ""
+ }
+ ],
+ "items": {
+ "required": [
+ "include",
+ "exclude"
+ ],
+ "properties": {
+ "include": {
+ "type": "string",
+ "default": "shift"
+ },
+ "exclude": {
+ "type": "string",
+ "default": ""
+ }
+ }
+ }
},
"touchInputEnabled": {
"type": "boolean",
@@ -371,11 +392,6 @@
"minimum": 1,
"default": 10
},
- "modifier": {
- "type": "string",
- "enum": ["none", "alt", "ctrl", "shift", "meta"],
- "default": "shift"
- },
"deepDomScan": {
"type": "boolean",
"default": false