Fix empty keys definitions and add Shift/Alt checks
This commit is contained in:
parent
fdfc2d33bb
commit
52d8d658a2
@ -49,10 +49,10 @@ class DisplaySearch extends Display {
|
|||||||
])],
|
])],
|
||||||
['Control', new Set(['C', 'A', 'Z', 'Y', 'X', 'F', 'G'])],
|
['Control', new Set(['C', 'A', 'Z', 'Y', 'X', 'F', 'G'])],
|
||||||
['Meta', new Set(['C', 'A', 'Z', 'Y', 'X', 'F', 'G'])],
|
['Meta', new Set(['C', 'A', 'Z', 'Y', 'X', 'F', 'G'])],
|
||||||
['OS', []],
|
['OS', new Set()],
|
||||||
['Alt', []],
|
['Alt', new Set()],
|
||||||
['AltGraph', []],
|
['AltGraph', new Set()],
|
||||||
['Shift', []]
|
['Shift', new Set()]
|
||||||
]);
|
]);
|
||||||
|
|
||||||
this._runtimeMessageHandlers = new Map([
|
this._runtimeMessageHandlers = new Map([
|
||||||
@ -175,6 +175,8 @@ class DisplaySearch extends Display {
|
|||||||
const activeModifierMap = new Map([
|
const activeModifierMap = new Map([
|
||||||
['Control', e.ctrlKey],
|
['Control', e.ctrlKey],
|
||||||
['Meta', e.metaKey],
|
['Meta', e.metaKey],
|
||||||
|
['Shift', e.shiftKey],
|
||||||
|
['Alt', e.altKey],
|
||||||
['ANY_MOD', true]
|
['ANY_MOD', true]
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user