mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
ignore scripted key events from the JSON Editors
This commit is contained in:
parent
66d5b16a5d
commit
992ce9f875
1 changed files with 5 additions and 0 deletions
|
@ -3797,6 +3797,11 @@ function loaded() {
|
||||||
if (FILTERED_NODE_NAMES.includes(keyUpEvent.target.nodeName)) {
|
if (FILTERED_NODE_NAMES.includes(keyUpEvent.target.nodeName)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (elUserDataEditor.contains(keyUpEvent.target) || elMaterialDataEditor.contains(keyUpEvent.target)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let {code, key, keyCode, altKey, ctrlKey, metaKey, shiftKey} = keyUpEvent;
|
let {code, key, keyCode, altKey, ctrlKey, metaKey, shiftKey} = keyUpEvent;
|
||||||
|
|
||||||
let controlKey = window.navigator.platform.startsWith("Mac") ? metaKey : ctrlKey;
|
let controlKey = window.navigator.platform.startsWith("Mac") ? metaKey : ctrlKey;
|
||||||
|
|
Loading…
Reference in a new issue