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.last.start and keyboard.last.end are the same #404

Closed
knod opened this issue Nov 21, 2015 · 2 comments
Closed

keyboard.last.start and keyboard.last.end are the same #404

knod opened this issue Nov 21, 2015 · 2 comments

Comments

@knod
Copy link

knod commented Nov 21, 2015

Inside the change event I console.log(keyboard) and keyboard.last.start and keyboard.last.end always appear to be the same, no matter the length of the key's value.

@Mottie
Copy link
Owner

Mottie commented Nov 21, 2015

Hi @knod!

As I described in #403, the start and end will only differ if there is text selected inside the input/textarea.

@knod
Copy link
Author

knod commented Nov 22, 2015

Understood, that completely clarifies it. start and end are about the caret position. If there's a selection, they're different, otherwise they're the same.

@Mottie Mottie closed this as completed Dec 3, 2015
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

No branches or pull requests

2 participants