Baseline Widely available
The enterkeyhint
global attribute is an enumerated attribute defining what action label (or icon) to present for the enter key on virtual keyboards.
<input enterkeyhint="go" />
<p contenteditable enterkeyhint="go">https://example.org</p>
Description
Form controls (such as <textarea>
or <input>
elements) or elements using contenteditable
can specify an inputmode
attribute to control what kind of virtual keyboard will be used. To further improve the user's experience, the enter key can be customized specifically by providing an enterkeyhint
attribute indicating how the enter key should be labeled (or which icon should be shown). The enter key usually represents what the user should do next; typical actions are: sending text, inserting a new line, or searching.
If no enterkeyhint
attribute is provided, the user agent might use contextual information from the inputmode
, type
, or pattern
attributes to display a suitable enter key label (or icon).
The enterkeyhint
attribute is an enumerated attribute and only accepts the following values:
enterkeyhint="enter"
Typically inserting a new line. return, âµ enterkeyhint="done"
Typically meaning there is nothing more to input and the input method editor (IME) will be closed. done, â
enterkeyhint="go"
Typically meaning to take the user to the target of the text they typed. go, ð¡¢ enterkeyhint="next"
Typically taking the user to the next field that will accept text. next, ⥠enterkeyhint="previous"
Typically taking the user to the previous field that will accept text. return, ⤠enterkeyhint="search"
Typically taking the user to the results of searching for the text they have typed. search, ð enterkeyhint="send"
Typically delivering the text to its target. send Specifications Browser compatibility See also
HTMLElement.enterKeyHint
property reflecting this attributeinputmode
global attributecontenteditable
global attributetype
and pattern
attributes on <input>
elementsRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.3