ケース ce-0072 · シナリオ scenario-enterkeyhint-behavior

enterkeyhint attribute does not work on contenteditable

OS: Android 14.0 デバイス: Smartphone Any ブラウザ: Chrome 120.0 キーボード: US 下書き
enterkeyhintmobileandroidchrome

このページはまだ翻訳されていません

現在、英語の原文を表示しています。翻訳への貢献をお待ちしております。

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

  1. Create a contenteditable div with enterkeyhint="send" or enterkeyhint="search".
  2. On an Android device, focus the contenteditable.
  3. Observe the Enter key label on the virtual keyboard.
  4. Compare with a standard input element with the same attribute.

Observed behavior

  • In Chrome on Android, enterkeyhint is ignored on contenteditable.
  • The Enter key always shows the default label.
  • No customization is possible.

Expected behavior

  • enterkeyhint should work on contenteditable elements.
  • The Enter key label should reflect the attribute value.
  • Behavior should match standard input elements.

Playground for this case

Use the reported environment as a reference and record what happens in your environment while interacting with the editable area.

Reported environment
OS: Android 14.0
Device: Smartphone Any
Browser: Chrome 120.0
Keyboard: US
Your environment

Use this editable area to reproduce the described case.

Event log
Use this log together with the case description when filing or updating an issue.
0 events
Interact with the editable area to see events here.