Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document that the Enter key causes the “keypress” event to fire (#37817)
Document that the Enter key causes the keypress event to fire This change updates the page for the “keypress” event to match actual behavior in browsers — by changing the page to state that the event fires when the Enter key is pressed — not only when a key that produces a character value is pressed. See w3c/uievents#183 (comment) and w3c/uievents#266 (comment) and w3c/uievents#392 Otherwise, without this change, the information on the “keypress” page incorrectly doesn’t match actual browser behavior — in that the page states that the “keypress” event fires _only_ when a key that produces a character value are pressed, while in fact browsers also fire the event when the Enter key is pressed.
- Loading branch information