JavaScript onKeyDown event is not fired in certain Command + key combinations

RESOLVED FIXED

Status

()

Core
Event Handling
RESOLVED FIXED
11 years ago
8 years ago

People

(Reporter: Rene Trost, Unassigned)

Tracking

Trunk
PowerPC
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

11 years ago
User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; de; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; de; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11

The JavaScript event onKeyDown is not fired for certain keys when the command-key is involved, e.g. Command+A, Command+N, Command+B

Only the onKeyUp is fired when the 2nd key has been released and the onKeyPress event only when the auto-key-repeat comes in - but no onKeyDown or onKeyPress event on first touch.



Reproducible: Always

Steps to Reproduce:
1. Open the example page: http://unixpapa.com/js/testkey.html
2. Press the Command-Key + A (or any of the keys mentioned above)
Actual Results:  
keyDown Event is fired for the Command-key but not for the A-key, only onKeyUp event fires when you release the A-key.

Expected Results:  
CMD+A Should behave same like CTRL+A and fire the keyDown and keyPress event in JavaScript.

Keyboard events become more and more important for Web-Applications and really need to standardized, at least the should work reliable.
(Reporter)

Updated

11 years ago
Version: unspecified → 2.0 Branch
(Reporter)

Comment 1

11 years ago
Also applies for FireFox 3 Beta 2: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; de; rv:1.9b2) Gecko/2007121014 Firefox/3.0b2

With one difference: When pressing CMD+A there is no key event for the A-key at all, no keyDown, keyUp or keyPress event.

 

(Reporter)

Updated

11 years ago
Version: 2.0 Branch → unspecified
(Reporter)

Updated

11 years ago
Component: General → Event Handling
Product: Firefox → Core
QA Contact: general → events
(Reporter)

Updated

11 years ago
Version: unspecified → Trunk
(Reporter)

Comment 2

8 years ago
Works in FF 3.6.3  Gecko/20100401
Status: UNCONFIRMED → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.