mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00:00
LibWeb: Implement HTMLElement.enterKeyHint
This reflects the value of the `enterkeyhint` content attribute
This commit is contained in:
parent
12fc1de9ca
commit
d73f809af5
Notes:
github-actions[bot]
2024-11-26 18:08:54 +00:00
Author: https://github.com/tcl3
Commit: d73f809af5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2591
2 changed files with 13 additions and 1 deletions
|
@ -71,6 +71,7 @@ namespace AttributeNames {
|
||||||
__ENUMERATE_HTML_ATTRIBUTE(download) \
|
__ENUMERATE_HTML_ATTRIBUTE(download) \
|
||||||
__ENUMERATE_HTML_ATTRIBUTE(enctype) \
|
__ENUMERATE_HTML_ATTRIBUTE(enctype) \
|
||||||
__ENUMERATE_HTML_ATTRIBUTE(ended) \
|
__ENUMERATE_HTML_ATTRIBUTE(ended) \
|
||||||
|
__ENUMERATE_HTML_ATTRIBUTE(enterkeyhint) \
|
||||||
__ENUMERATE_HTML_ATTRIBUTE(event) \
|
__ENUMERATE_HTML_ATTRIBUTE(event) \
|
||||||
__ENUMERATE_HTML_ATTRIBUTE(face) \
|
__ENUMERATE_HTML_ATTRIBUTE(face) \
|
||||||
__ENUMERATE_HTML_ATTRIBUTE(fetchpriority) \
|
__ENUMERATE_HTML_ATTRIBUTE(fetchpriority) \
|
||||||
|
|
|
@ -52,6 +52,17 @@ HTMLElement includes GlobalEventHandlers;
|
||||||
HTMLElement includes ElementContentEditable;
|
HTMLElement includes ElementContentEditable;
|
||||||
HTMLElement includes HTMLOrSVGElement;
|
HTMLElement includes HTMLOrSVGElement;
|
||||||
|
|
||||||
|
// https://html.spec.whatwg.org/multipage/interaction.html#attr-enterkeyhint
|
||||||
|
enum EnterKeyHint {
|
||||||
|
"enter",
|
||||||
|
"done",
|
||||||
|
"go",
|
||||||
|
"next",
|
||||||
|
"previous",
|
||||||
|
"search",
|
||||||
|
"send"
|
||||||
|
};
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/#attr-inputmode
|
// https://html.spec.whatwg.org/#attr-inputmode
|
||||||
enum InputMode {
|
enum InputMode {
|
||||||
"none",
|
"none",
|
||||||
|
@ -67,7 +78,7 @@ enum InputMode {
|
||||||
// https://html.spec.whatwg.org/#elementcontenteditable
|
// https://html.spec.whatwg.org/#elementcontenteditable
|
||||||
interface mixin ElementContentEditable {
|
interface mixin ElementContentEditable {
|
||||||
[CEReactions] attribute DOMString contentEditable;
|
[CEReactions] attribute DOMString contentEditable;
|
||||||
[FIXME, CEReactions] attribute DOMString enterKeyHint;
|
[Reflect=enterkeyhint, Enumerated=EnterKeyHint, CEReactions] attribute DOMString enterKeyHint;
|
||||||
readonly attribute boolean isContentEditable;
|
readonly attribute boolean isContentEditable;
|
||||||
[Reflect=inputmode, Enumerated=InputMode, CEReactions] attribute DOMString inputMode;
|
[Reflect=inputmode, Enumerated=InputMode, CEReactions] attribute DOMString inputMode;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue