Additional builder functions for simulating Html events.
pressEnter : ( String, Json.Encode.Value )
Simulate the event when the enter key is pressed down, by setting event.keyCode
value 13
.
releaseEnter : ( String, Json.Encode.Value )
Simulate the event when the enter key is released, by setting event.keyCode
value 13
.
pressSpace : ( String, Json.Encode.Value )
Simulate the event when the space key is pressed down, by setting event.keyCode
value 32
.
releaseSpace : ( String, Json.Encode.Value )
Simulate the event when the space key is released, by setting event.keyCode
value 32
.
change : String -> ( String, Json.Encode.Value )
Simulate change events for things like text fields or text areas.
Specify the string value for event.target.value
.