mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 10:29:01 +02:00
Merge pull request #4364 from huffman/save-on-blur
Fix properties window changes not taking affect when losing focus
This commit is contained in:
commit
5ef86f88f5
1 changed files with 7 additions and 0 deletions
|
@ -439,6 +439,13 @@
|
||||||
percentage: parseInt(elRescaleDimensionsPct.value),
|
percentage: parseInt(elRescaleDimensionsPct.value),
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
window.onblur = function() {
|
||||||
|
// Fake a change event
|
||||||
|
var ev = document.createEvent("HTMLEvents");
|
||||||
|
ev.initEvent("change", true, true);
|
||||||
|
document.activeElement.dispatchEvent(ev);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Reference in a new issue