You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 23, 2018. It is now read-only.
I have a project which uses spacebar and backspace as controls, both of which have builtin defaults in the browser that I need to bypass.
Being able to selectively preventDefault on a key-by-key basis would be ideal or in some cases to preventDefault on a conditional basis within elm. e.g. Only preventDefault for a key if the model has a certain state. However at the moment my app doesn't require the latter.
The text was updated successfully, but these errors were encountered:
This would be really useful for game development in Elm, since most in-browser games will use keys with default behaviours such as the arrow keys and the spacebar.
@mdgriffith In the meantime you can use Chrome Canary, which no longer have the default behaviour for backspace. This is expected to be shipped in future versions of Chrome.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have a project which uses spacebar and backspace as controls, both of which have builtin defaults in the browser that I need to bypass.
Being able to selectively preventDefault on a key-by-key basis would be ideal or in some cases to preventDefault on a conditional basis within elm. e.g. Only preventDefault for a key if the model has a certain state. However at the moment my app doesn't require the latter.
The text was updated successfully, but these errors were encountered: