This commit is contained in:
scromie@turnmeupgames.com 2017-07-26 19:34:20 +03:00
parent f1db0e9e53
commit 33ff5917be

View file

@ -475,6 +475,15 @@ function unbindAllInputs() {
}
}
function clearSelection() {
if(document.selection && document.selection.empty) {
document.selection.empty();
} else if(window.getSelection) {
var sel = window.getSelection();
sel.removeAllRanges();
}
}
function loaded() {
openEventBridge(function() {
@ -1051,6 +1060,7 @@ function loaded() {
activeElement.select();
}
}
clearSelection();
}
});
}