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

Backspace on wide keys jumbles input #419

Closed
freemaths opened this issue Dec 16, 2015 · 4 comments
Closed

Backspace on wide keys jumbles input #419

freemaths opened this issue Dec 16, 2015 · 4 comments

Comments

@freemaths
Copy link

With a key such as "sin" backspace jumbles the characters of the preceding string. E.g. pressing:

sin sin {b}

result in

nsi

http://jsfiddle.net/edarnell/pqvkbckd/21/

@Mottie
Copy link
Owner

Mottie commented Dec 16, 2015

Hi @freemaths!

Wow that is odd... to be 100% honest I had no idea that restrictInput would remove blocks of letters like that LOL. And I think that is where the problem is located. I'll try to dig into the code more tonight. Thanks!

@Mottie Mottie added the Bug label Dec 16, 2015
@Mottie Mottie closed this as completed in c9e9a12 Dec 17, 2015
@Mottie
Copy link
Owner

Mottie commented Dec 17, 2015

I found the problem! The fix is now available in the master branch.

I updated the demo so you can test it, but rawgit is taking a while to catch up so don't think it's broken just yet 😉

http://jsfiddle.net/Mottie/pqvkbckd/22/

@Mottie
Copy link
Owner

Mottie commented Dec 17, 2015

Ok, now it's working... I think it's sort of a bonus that if the caret is in the middle of a word like c|os and you press sin, the cos gets replaced with sin.

@freemaths
Copy link
Author

Works perfectly - many thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants