Bugzilla – Bug 3141
Unable to type characters "crsvx" in to certain text input fields.
Last modified: 2008-09-15 14:38:25 UTC
In skin Default2, for certain text input fields (for example, the Player Name field in the "Home / Player Settings" page) the characters c, r, s, v and x do not get entered in to the text field when typed. Instead, they control various functions of the player. For example: C - toggle play/pause R - step through the repeat modes S - step through the shuffle modes V - stop playing X - start playing This happens in both Firefox (1.5.1) and IE (6.0) on Windows XP Pro. Server version is 6.2.1 - 5194 - Linux - EN - utf8. Running on RH FC4.
Jacob - this sounds like yours. :)
Here is one trick to avoid this problem. Add the following lines after the fourth line of handlekey(e) in Default2/html/status.js: var tg = (e.target) ? e.target : e.srcElement; if (tg.name) return true; What this does is check the target element of the keypress. If the target has a "name" property, as an input field does, then the keypress is ignored by the handler and the input field alone gets the keypress. Any other time, then keypress will be handled by the javascript. If you want this in the release, please commit or if there is time, I can do tonight if you let me know.
Jacob? Is this something you are looking at?
Jacob? Ping?
If no one objects, I'm willing to commit the fix proposed above for 6.3. This does solve the typing issue when needed for use on input forms. it did seem to be ok with Firefox/IE at least. I have not tested with Safari or Opera, but I expect no surprises there and woudl be willing to test before commit if is desired.
KDF: go for it!
committed at change 8070
This bug fix is now part of a released version, and so has been marked closed. If you are still experiencing this problem, please reopen the bug.