ID:1926875
 
BYOND Version:498
Operating System:Windows 8 64-bit
Web Browser:Chrome 44.0.2403.157
Applies to:Webclient
Status: Open

Issue hasn't been assigned a status value.
Descriptive Problem Summary:
Basically, if you use winset to focus an input, it won't actually focus it, just sort of highlight it with a border.

Code Snippet (if applicable) to Reproduce Problem:
winset(usr,null,"default.name.focus=true")


Expected Results:
It should allow me to type as soon as it's focused.
Actual Results:
Just highlights it with a selected border or something.
Ok, it seems to set focus on the div rather than the actual input itself.
Was able to make a work around using
<script>

setinputs()

function setinputs(){
setTimeout(function() {
var x = document.getElementsByClassName("byond_input");
for (i = 0; i < x.length; i++) {
x[i].onfocus = function () {
childFocus(this);
};
}
}, 500);
}

function childFocus(x){
var c = x.childNodes;
c[0].focus();
}

</script>
I can probably figure out a way to deal with this with too, but good workaround.