Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard text selection (shift+arrow keys) doesn't work with Elm 0.19 #18

Merged
merged 1 commit into from
Feb 25, 2020

Conversation

matssigge
Copy link
Contributor

Keyboard-based text selection, i.e. using shift and the arrow keys) worked in Numeric inputs using Elm 0.18/5.2.1 (and, I assume also BigNumber and Float), but it does not work in 0.19/5.2.2. When pressing e.g. Shift+Left, nothing happens. This is because the code ends up calling preventDefault when shift is pressed. This seems deliberate (since handling of shift differs from ctrl/alt/meta), so maybe this breaks something else that I'm not noticing, but changing the code so that preventDefault isn't called fixes keyboard selection.

@abadi199 abadi199 merged commit 98545f3 into abadi199:master Feb 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants