Skip to content

Commit 6c5341a

Browse files
dtapuskaChrome-bot
authored and
Chrome-bot
committed
Add experimental support for enterKeyHint.
enterKeyHint allows customization of the virtual keyboard enter key. Enabled behind a flag since it isn't approved to ship yet. Spec: whatwg/html#3538 BUG=634330 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng Change-Id: I32b510d8157e0c676300a38bb4c7fa2bbced0b3d
1 parent af3dc21 commit 6c5341a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

html/dom/elements-misc.js

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ var miscElements = {
5353

5454
// Global attributes should exist even on unknown elements
5555
undefinedelement: {
56+
enterKeyHint: {type: "enum", keywords: ["enter", "done", "go", "next", "previous", "search", "send"]},
5657
inputMode: {type: "enum", keywords: ["none", "text", "tel", "url", "email", "numeric", "decimal", "search"]},
5758
},
5859
};

html/semantics/forms/attributes-common-to-form-controls/contains.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
"id": "autofocusing-a-form-control-the-autofocus-attribute",
2424
"original_id": "autofocusing-a-form-control:-the-autofocus-attribute"
2525
},
26+
{
27+
"id": "input-modalities-the-enterkeyhint-attribute",
28+
"original_id": "input-modalities:-the-enterkeyhint-attribute"
29+
},
2630
{
2731
"id": "input-modalities-the-inputmode-attribute",
2832
"original_id": "input-modalities:-the-inputmode-attribute"
@@ -31,4 +35,4 @@
3135
"id": "autofilling-form-controls-the-autocomplete-attribute",
3236
"original_id": "autofilling-form-controls:-the-autocomplete-attribute"
3337
}
34-
]
38+
]

0 commit comments

Comments
 (0)