Skip to content

Commit

Permalink
Add experimental support for enterKeyHint.
Browse files Browse the repository at this point in the history
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
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1221696
Commit-Queue: Dave Tapuska <[email protected]>
Reviewed-by: Jeremy Roman <[email protected]>
Reviewed-by: Changwan Ryu <[email protected]>
Reviewed-by: Avi Drissman <[email protected]>
Reviewed-by: Ken Buchanan <[email protected]>
Reviewed-by: Joshua Bell <[email protected]>
Cr-Commit-Position: refs/heads/master@{#661904}
  • Loading branch information
dtapuska authored and Marcos Cáceres committed Jul 23, 2019
1 parent 16088c3 commit 02f3d95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions html/dom/elements-misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ var miscElements = {

// Global attributes should exist even on unknown elements
undefinedelement: {
enterKeyHint: {type: "enum", keywords: ["enter", "done", "go", "next", "previous", "search", "send"]},
inputMode: {type: "enum", keywords: ["none", "text", "tel", "url", "email", "numeric", "decimal", "search"]},
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
"id": "autofocusing-a-form-control-the-autofocus-attribute",
"original_id": "autofocusing-a-form-control:-the-autofocus-attribute"
},
{
"id": "input-modalities-the-enterkeyhint-attribute",
"original_id": "input-modalities:-the-enterkeyhint-attribute"
},
{
"id": "input-modalities-the-inputmode-attribute",
"original_id": "input-modalities:-the-inputmode-attribute"
Expand All @@ -31,4 +35,4 @@
"id": "autofilling-form-controls-the-autocomplete-attribute",
"original_id": "autofilling-form-controls:-the-autocomplete-attribute"
}
]
]

0 comments on commit 02f3d95

Please sign in to comment.