|elm-version||0.18.0 <= v < 0.19.0|
|Committed At||2018-06-30 11:15:31 UTC|
Event handlers for sending content and triggering actions based on keypresses.
elm package install kmbn/elm-hotkeys
import Hotkeys exposing (onEnterSend)
input [ placeholder "Enter content", onEnterSend NewContent ] 
../examples/onEnterSend.elm for a working example
Send content only when enter is pressed. Do not send anything beforehand.
This is an alternative to using
Html.Events.onInput to update the model with
incomplete content on every keystroke and then using another event handler to
indicate that the content collected in the model is now complete.
Instead, we only send content to
update when the content is ready to be
© 2018 Kevin Brochet-Nguyen