Closed Bug 909280 Opened 12 years ago Closed 10 years ago

Keycodes not available for Umlauts

Categories

(Core :: DOM: Events, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: martin.osanger, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.57 Safari/537.36 Steps to reproduce: There is no KeyCode for Umlauts on keydown: http://unixpapa.com/js/testkey.html e.g: Hit "ä" on the keyboard on this testsite keydown keyCode=0 which=0 charCode=0 keypress keyCode=0 which=228 charCode=228 keyup keyCode=0 which=0 charCode=0 Actual results: No KeyCode was delivered in Firefox: keyCode=0 instead of keyCode=222 on keydown event Expected results: The appropriate Keycode should be set on keydown, keypress, keydown e.g (other browsers) keydown keyCode=222 which=222 charCode=0 keypress keyCode=228 which=228 charCode=228 keyup keyCode=222 which=222 charCode=0
From bug 1176666 it seems like this would be a good-first-bug for someone to mentor.
Status: UNCONFIRMED → NEW
Component: Untriaged → Graphics: Text
Ever confirmed: true
Flags: needinfo?(jdaggett)
OS: Windows 7 → All
Product: Firefox → Core
Hardware: x86_64 → All
Whiteboard: [gfx-noted]
Version: 23 Branch → Trunk
Anthony, can you provide a bit more context to your needinfo requests? What did you want me to do here? I'm guessing this is less about text display than it is about keyboard handling. Guessing Nakano-san might be a good person to loop in.
Flags: needinfo?(jdaggett)
Hi John, sorry I wasn't clear. I thought this would be a good "feature" for a contributor to work on and was thinking you might know someone who could be a mentor for said hypothetical contributor.
It depends on what the key inputs with other modifier states. See *our* keyCode computation spec: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode#Printable_keys_in_standard_position Fortunately, we've already implemented KeyboardEvent.key. Web apps should refer it (or KeyboardEvent.code if you need to know which *physical* key is pressed). I close this bug as INVA, but if current behavior is different from the *our* spec mentioned above, feel free to reopen this bug.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
Component: Graphics: Text → DOM: Events
Whiteboard: [gfx-noted]
Hi, the issue still exists. Please reopen the bug. Best, Johannes
(In reply to Johannes Eckhardt from comment #6) > Hi, > > the issue still exists. Please reopen the bug. I think the issue is not whether the bug exists, it's whether the case you refer to is adhering to the spec (see comment 5). If it is adhering to the spec and the characters still don't display properly then it's probably our bug. If it's not adhering to the spec then the bug is not in our code.
You need to log in before you can comment on or make changes to this bug.