Closed
Bug 300678
Opened 19 years ago
Closed 19 years ago
When holding down the alt(option) key in Mac OS X (10.3.9 and 10.4) the evt.keyCode is reported as 0
Categories
(Firefox :: Disability Access, defect)
Tracking
()
People
(Reporter: rockhowse, Unassigned)
Details
Attachments
(1 file)
|
311 bytes,
text/html
|
Details |
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) Build Identifier: Mozialla/5.0 (Macintosh;U; PPC Mac OS X Mach-0;en-US;rv.1.7.9)Gecko/20050711 Firefox/1.0.5 returns 0 for any button pressed while holding down the "alt" key when trying to use the event.keyCode javascript function. Reproducible: Always Steps to Reproduce: 1.hold down alt key 2.hit any other key 3.the event.keycode is reported as 0 for every key Actual Results: javascript broke because it was checking on keycode Expected Results: reported the correct numeric value (keycode) designated to the key pressed See the attached HTML example. Tried it on Firfox 1.0.5 on Windows XP (SP2) and Mac OS X 10.4. results: hit alt-l on windows - evt.keyCode=76 evt.altKey=true hit alt-l on mac - evt.keyCode=0 evt.altKey=true
might possibly be a dupe but I narrowed this down to a very specific instace we instructions on exactly which os/browser/key combos were creating the bug. the one you listed had a vauge discription of "event.keyCode doesn't always return correct value" or something which doesn't really help the devlopers. The bug outlined in this occurs on Mac OS X 10.3.9/10.4 using Firefox 1.0.5 if you look at the included example page the event.keycode returned while holding down the alt key and pressing another key will AWLAYS return 0... cheers
Comment 5•19 years ago
|
||
*** This bug has been marked as a duplicate of 44259 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•