mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:35:08 +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)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (elUserDataEditor.contains(keyUpEvent.target) || elMaterialDataEditor.contains(keyUpEvent.target)) {
|
||||
return;
|
||||
}
|
||||
|
||||
let {code, key, keyCode, altKey, ctrlKey, metaKey, shiftKey} = keyUpEvent;
|
||||
|
||||
let controlKey = window.navigator.platform.startsWith("Mac") ? metaKey : ctrlKey;
|
||||
|
|
Loading…
Reference in a new issue