mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
For web compat and interop with other engines, this change makes us fire “keypress” events for the Enter key and for the combination of the Enter key with the Shift or Ctrl keys — despite the fact the UI Events spec states at https://w3c.github.io/uievents/#event-type-keypress it must be fired “if and only if that key normally produces a character value”. See https://github.com/w3c/uievents/issues/183#issuecomment-448091687 and https://github.com/w3c/uievents/issues/266#issuecomment-1887917756.
15 lines
479 B
Plaintext
15 lines
479 B
Plaintext
keydown key=A charCode=0
|
|
keypress key=A charCode=65
|
|
keydown key=Shift charCode=0
|
|
keydown key=B charCode=0
|
|
keypress key=B charCode=66
|
|
keydown key=Enter charCode=0
|
|
keypress key=Enter charCode=0
|
|
keydown key=Enter charCode=0 modifiers=Alt
|
|
keydown key=Enter charCode=0 modifiers=Control
|
|
keypress key=Enter charCode=0 modifiers=Control
|
|
keydown key=Enter charCode=0 modifiers=Shift
|
|
keypress key=Enter charCode=0 modifiers=Shift
|
|
keydown key=Enter charCode=0
|
|
keydown key=Enter charCode=0
|