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

[BUGFIX] Do not handle key events when the editor has no cursor #353

Merged
merged 1 commit into from
Mar 24, 2016

Conversation

bantic
Copy link
Collaborator

@bantic bantic commented Mar 24, 2016

It is possible for the editor's element to be focused but not have a
cursor (selection). In this case, key events will fire on the editor's
element but the editor will not be able to determine a logical
Position (since there is no selection). When this happens, we abort
handling the key event.

fixes #344

cc @rlivsey

It is possible for the editor's element to be focused but not have a
cursor (selection). In this case, key events will fire on the editor's
element but the editor will not be able to determine a logical
`Position` (since there is no selection). When this happens, we abort
handling the key event.

fixes #344
@bantic bantic force-pushed the position-move-344 branch from 8afc91f to 251675e Compare March 24, 2016 21:42
@bantic bantic merged commit 9fc1f20 into master Mar 24, 2016
@bantic bantic deleted the position-move-344 branch March 24, 2016 21:52
@bantic
Copy link
Collaborator Author

bantic commented Mar 24, 2016

released in v0.9.1

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.

Position#move isn't available on blank position
1 participant