Use rune param for Accesskey

This commit is contained in:
Brandon Dyck 2019-04-27 15:00:56 -06:00
parent e0ccb4549e
commit 141a1a3219
3 changed files with 10 additions and 9 deletions

10
attribute/accesskey.go Normal file
View File

@ -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}),
}
}

View File

@ -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{

View File

@ -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"},