mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-24 22:21:45 +03:00
e8f8f4dc38
Note that there can only be one `on "keydown"` event on a DOM node so any more complex event handlers will need to use a custom event instead ``` onEnter : msg -> TextInput.Attribute msg onEnter msg = (\event -> case event.key of Just "Enter" -> if noModifiers event then Just msg else Nothing _ -> Nothing ) |> considerKeyboardEvent |> HtmlEvents.on "keydown" |> TextInput.custom ``` |
||
---|---|---|
.. | ||
assets/images | ||
Debug/Control | ||
Examples | ||
.gitignore | ||
Category.elm | ||
CommonControls.elm | ||
elm.json | ||
Example.elm | ||
Examples.elm | ||
index.html | ||
KeyboardSupport.elm | ||
Main.elm | ||
manifest.js | ||
Routes.elm |