sxh / ui-base / UiBase.OnKey

Send messages when particular keys are pressed

Convenience methods

onEnter : msg -> Element.Attribute msg

Send msg when Enter key is pressed

onEscape : msg -> Element.Attribute msg

Send msg when Escape key is pressed

General method

onKey : String -> msg -> Element.Attribute msg

Send msg when keyValue key is pressed. Keyvalue must be a string that is the value of a particular key

    onKey "Enter" msg

    onKey "Q" msg