diff --git a/attribute/accesskey.go b/attribute/accesskey.go new file mode 100644 index 0000000..aba0160 --- /dev/null +++ b/attribute/accesskey.go @@ -0,0 +1,10 @@ +package attribute + +import "gitlab.codemonkeysoftware.net/b/hatmill" + +func Accesskey(value rune) hatmill.Attrib { + return hatmill.Attrib { + Key: "accesskey", + Value: string([]rune{value}), + } +} diff --git a/attribute/generated.go b/attribute/generated.go index c458d7c..8914657 100644 --- a/attribute/generated.go +++ b/attribute/generated.go @@ -22,14 +22,6 @@ func AcceptCharset(value string) hatmill.Attrib { } } -// Accesskey creates a "accesskey" attribute -func Accesskey(value string) hatmill.Attrib { - return hatmill.Attrib{ - Key: "accesskey", - Value: value, - } -} - // Action creates a "action" attribute func Action(value string) hatmill.Attrib { return hatmill.Attrib{ diff --git a/defs.json b/defs.json index 2bfd22b..8962d68 100644 --- a/defs.json +++ b/defs.json @@ -2,7 +2,6 @@ "attributes": [ {"name": "accept", "type": "string"}, {"name": "accept-charset", "type": "string"}, - {"name": "accesskey", "type": "string"}, {"name": "action", "type": "string"}, {"name": "alt", "type": "string"}, {"name": "async", "type": "bool"},