-
Notifications
You must be signed in to change notification settings - Fork 68
Open
Description
The issue
I am building an editor using Elm, so I am handling all sorts of keyboard input. I just learned that the subscriptions in Browser.Events unfortunately don't provide the possibilty to prevendDefault the browser behavior. This is unfortunate because sometime I need the tab key to do something different than switch to the next tabIndex element or intercept key strokes on inputs.
Possible workaround
- Using
Html.Eventson the outermost<div>. Unfortunately this won't work if the focus gets somehow changed to the body. - Ports: Works but needs JavaScript code and makes one leave the safe Elm haven.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels