Phenomenon
The enterkeyhint attribute, which controls the label on the Enter key on mobile keyboards, does not work on contenteditable elements. The Enter key label remains the default regardless of the attribute value.
Reproduction example
- Create a contenteditable div with
enterkeyhint="send"orenterkeyhint="search". - On an Android device, focus the contenteditable.
- Observe the Enter key label on the virtual keyboard.
- Compare with a standard input element with the same attribute.
Observed behavior
- In Chrome on Android,
enterkeyhintis ignored on contenteditable. - The Enter key always shows the default label.
- No customization is possible.
Expected behavior
enterkeyhintshould work on contenteditable elements.- The Enter key label should reflect the attribute value.
- Behavior should match standard input elements.