Open Bug 1346832 Opened 7 years ago Updated 2 years ago

ctrlKey, altKey and metaKey of keypress event shouldn't be consumed by widget when it causes inputting character into editor

Categories

(Core :: DOM: Events, defect, P3)

defect

Tracking

()

Tracking Status
firefox55 --- affected

People

(Reporter: masayuki, Unassigned)

References

Details

Attachments

(1 obsolete file)

TextEditor doesn't accept keypress events as inputting character event if ctrlKey, altKey or metaKey is true. By this limitation, widget consumes these state before dispatching eKeyPress event at dispatching it.

TextEditor should refer another new flag at checking if eKeyPress should cause inputting character. And these modifier states should indicate actual state.

FYI: When AltGr is pressed on Windows, both ctrlKey and altKey are true on the other browsers (and also getModifierState("AltGraph") returns true). Gecko sets them false, but getModifierState("AltGraph") works as expected.
Wait, is the patch for some other bug?
Comment on attachment 8847613 [details]
Bug 1346832 Get rid of UIEvent.isChar since it's not initialized properly on most platforms and the other browsers don't support this

https://reviewboard.mozilla.org/r/120564/#review123132

Wrong bug number or something?
Attachment #8847613 - Flags: review?(bugs)
Oh, right. Sorry. It's for bug 1347073. I'll post it to the correct bug.
Attachment #8847613 - Attachment is obsolete: true
Priority: -- → P3

Resetting assignee which I don't work on in this several months.

Assignee: masayuki → nobody
Status: ASSIGNED → NEW
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: