Bug 3141 - Unable to type characters "crsvx" in to certain text input fields.
: Unable to type characters "crsvx" in to certain text input fields.
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Web Interface
: 6.2.1
: PC RedHat Linux
: P2 normal (vote)
: ---
Assigned To: KDF
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-03-11 07:56 UTC by Tom
Modified: 2008-09-15 14:38 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom 2006-03-11 07:56:08 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.
Comment 1 Dan Sully 2006-04-22 14:15:30 UTC
Jacob - this sounds like yours. :)
Comment 2 KDF 2006-04-25 12:54:09 UTC
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.
Comment 3 Blackketter Dean 2006-06-06 17:05:53 UTC
Jacob? Is this something you are looking at?
Comment 4 Blackketter Dean 2006-06-13 16:47:17 UTC
Jacob?  Ping?
Comment 5 KDF 2006-06-18 01:40:57 UTC
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.
Comment 6 Blackketter Dean 2006-06-20 11:29:31 UTC
KDF:  go for it!
Comment 7 KDF 2006-06-20 19:26:28 UTC
committed at change 8070
Comment 8 Chris Owens 2006-06-27 14:22:02 UTC
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.