Orasund / elm-ui-widgets

Collection of reusable views for elm-ui.
https://orasund.github.io/elm-ui-widgets/
BSD 3-Clause "New" or "Revised" License
85 stars 11 forks source link

Handling Return key press in textInput #82

Closed bilus closed 3 years ago

bilus commented 3 years ago

Is there a way to do it without forking/creating a PR to the library? :)

My use case is two fold:

Thanks!

Orasund commented 3 years ago

I guess you mean handling the enter key?

The way to handle this is to use the Html.Events.on event. Here is an Ellie that might help.

I'm closing the issue, as the problem is not specific to this package.