Merge pull request #4364 from huffman/save-on-blur

Fix properties window changes not taking affect when losing focus
This commit is contained in:
Clément Brisset 2015-03-03 08:35:49 -08:00
commit 5ef86f88f5

View file

@ -439,6 +439,13 @@
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>
</head>