ID:112440
 
Resolved
The Enter key could not be read by JavaScript within a browser control, even if the browser had focus.
BYOND Version:481
Operating System:Windows 7 Ultimate 64-bit
Web Browser:Chrome 11.0.696.50
Applies to:Dream Seeker
Status: Resolved (482)

This issue has been resolved.
Descriptive Problem Summary:
While browse()ing HTML, Javascript can detect any keyCode except for Enter, which Javascript is usually able to do. (at least in IE6, IE8 and Chrome 10 , which I tested.)

Numbered Steps to Reproduce Problem:
1. Run following code. (replace "disabledkeydown" with "onkeydown". The tracker added it)
2. Focus on the input box.
3. Press keys and note that the keyCode is displayed.
4. Press Enter and note that nothing happens.

Code Snippet (if applicable) to Reproduce Problem:
/mob/Login()
{
..()
src << browse({"<input onkeydown="alert(event.keyCode)" />"})
}


Expected Results:
For Enter to show the alert box with "13".

Actual Results:
Nothing happens when Enter is used.

Does the problem occur:
Every time? Or how often? Every time.
In other games? Yep.
In other user accounts? Not sure.
On other computers? Not sure.


Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? I tested in 479, same result.

Workarounds:
I'm not aware of a viable workaround.