noredink-ui/styleguide-app
Alex Perkins e8f8f4dc38 add an attr for Enter keydown events
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
```
2021-10-27 10:43:53 -04:00
..
assets/images Revert "Merge pull request #461 from NoRedInk/puffins/prepare-for-merge" 2020-03-06 20:00:34 +01:00
Debug/Control Adds hover css example 2021-10-21 17:27:29 -07:00
Examples add an attr for Enter keydown events 2021-10-27 10:43:53 -04:00
.gitignore Revert "Merge pull request #461 from NoRedInk/puffins/prepare-for-merge" 2020-03-06 20:00:34 +01:00
Category.elm Fix make 2020-04-03 09:45:55 -07:00
CommonControls.elm Adds http error to the styleguide example for Message 2021-05-14 15:02:58 -07:00
elm.json Update styleguide dependencies" 2021-05-27 18:30:31 -07:00
Example.elm 💀 remove atomic design elements 2021-05-27 18:30:31 -07:00
Examples.elm Adds styleguide example 2021-10-13 10:44:03 -07:00
index.html make style guide app display correctly on mobile 2021-09-28 19:59:53 -07:00
KeyboardSupport.elm Adds keyboard support notes 2020-09-02 14:19:41 -07:00
Main.elm Marginally improve the mobile styleguide 2021-10-04 15:40:18 -07:00
manifest.js Revert "Merge pull request #461 from NoRedInk/puffins/prepare-for-merge" 2020-03-06 20:00:34 +01:00
Routes.elm Fix routing to remove false positives due to routing: see https://github.com/dequelabs/axe-core/issues/1204 2020-03-31 13:20:37 -05:00