support meta as scanning modifier (#502)
This commit is contained in:
parent
7d7ff165ce
commit
a1f8f0d1de
@ -351,7 +351,7 @@
|
|||||||
},
|
},
|
||||||
"modifier": {
|
"modifier": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": ["none", "alt", "ctrl", "shift"],
|
"enum": ["none", "alt", "ctrl", "shift", "meta"],
|
||||||
"default": "shift"
|
"default": "shift"
|
||||||
},
|
},
|
||||||
"deepDomScan": {
|
"deepDomScan": {
|
||||||
|
@ -417,6 +417,7 @@
|
|||||||
<option value="alt">Alt</option>
|
<option value="alt">Alt</option>
|
||||||
<option value="ctrl">Ctrl</option>
|
<option value="ctrl">Ctrl</option>
|
||||||
<option value="shift">Shift</option>
|
<option value="shift">Shift</option>
|
||||||
|
<option data-hide-for-browser="firefox firefox-mobile" value="meta">Meta</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -369,6 +369,7 @@ class TextScanner extends EventDispatcher {
|
|||||||
case 'alt': return mouseEvent.altKey;
|
case 'alt': return mouseEvent.altKey;
|
||||||
case 'ctrl': return mouseEvent.ctrlKey;
|
case 'ctrl': return mouseEvent.ctrlKey;
|
||||||
case 'shift': return mouseEvent.shiftKey;
|
case 'shift': return mouseEvent.shiftKey;
|
||||||
|
case 'meta': return mouseEvent.metaKey;
|
||||||
case 'none': return true;
|
case 'none': return true;
|
||||||
default: return false;
|
default: return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user