Merge pull request #14778 from thoys/fix/create/ignoreScriptedKeyEventsFromJSONEditor

MS20501 [CreateApp/Properties] ignore scripted key events from the JSON Editors
This commit is contained in:
Jeff Clinton 2019-01-28 11:40:48 -08:00 committed by GitHub
commit 9d09c777d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3798,6 +3798,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;