Open Bug 1542252 Opened 6 years ago Updated 2 years ago

Consider dispatching keyboard events for astral-character keystrokes

Categories

(Core :: Widget: Gtk, defect, P5)

defect

Tracking

()

People

(Reporter: hsivonen, Unassigned)

References

Details

The Gtk widget implementation has this comment:

  // If the character code is in the BMP, send the key press event.
  // Otherwise, send a compositionchange event with the equivalent UTF-16
  // string.
  // TODO: Investigate other browser's behavior in this case because
  //       this hack is odd for UI Events.

IE and EdgeHTML-based Edge can dispatch keyboard events whose key string has two UTF-16 code units forming a surrogate pair. See bug 1541349.

Especially on the assumption that IE is historically Web compatible, we should consider removing the hack to map astral keystrokes to composition events in the Gtk widget.

See Also: → 1542259

(In reply to Henri Sivonen (:hsivonen) from comment #0)

Especially on the assumption that IE is historically Web compatible, we should consider removing the hack to map astral keystrokes to composition events in the Gtk widget.

IE has been able to report a single keystroke (with a surrogate pair in the key string) per astral keystroke since at least IE9 on Windows 7. (The test case is incompatible with earlier IE.)

Priority: -- → P5
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.