Accessibility & semanticsYour Enter-key handler submits forms mid-word for CJK typists
On the HTMHell Advent Calendar, mehm8128 explains how a keydown listener for Enter can submit a form while Chinese, Japanese and Korean users are still confirming IME text, and why Safari's event order defeats the usual isComposing guard. The article's fixes are an extra keyCode 229 check or the form's native submit event.