From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/html/global_attributes%2Fenterkeyhint.html | 66 ++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 devdocs/html/global_attributes%2Fenterkeyhint.html (limited to 'devdocs/html/global_attributes%2Fenterkeyhint.html') diff --git a/devdocs/html/global_attributes%2Fenterkeyhint.html b/devdocs/html/global_attributes%2Fenterkeyhint.html new file mode 100644 index 00000000..83e0237c --- /dev/null +++ b/devdocs/html/global_attributes%2Fenterkeyhint.html @@ -0,0 +1,66 @@ +

enterkeyhint

The enterkeyhint global attribute is an enumerated attribute defining what action label (or icon) to present for the enter key on virtual keyboards.

+

Try it

+
+

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).

+
+

Values

+
+

The enterkeyhint attribute is an enumerated attribute and only accepts the following values:

Value Description Example label (depends on user agent and user language)
enterkeyhint="enter" Typically inserting a new line.
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. Open
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. Previous
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

+
+ + +
Specification
HTML Standard
# attr-enterkeyhint
+

Browser compatibility

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariWebView AndroidChrome AndroidFirefox for AndroidOpera AndroidSafari on IOSSamsung Internet
enterkeyhint777994No6613.17777945713.412.0
+

See also

+
+

+ © 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
+ https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint +

+
-- cgit v1.2.3