-
-
Notifications
You must be signed in to change notification settings - Fork 174
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 does not delete selected text #637
Comments
Hello @tuomassa, Thanks for reporting this, I'll have a look at it soon. Edit: The fix will involve more extensive testing, so this might take a few days before being released. |
Thanks a lot for taking a look at it! Another related behavior that virtual keyboard users are used to, is when you select a word for example and press any letter, it replaces selected text with that letter, without having to press backspace first |
Hi @hodgef Any update on this issue? |
Hey @Centaurnia and @tuomassa , really sorry for the delay. There was one modules bug that was driving me nuts. I've now released v2.30.0 to a staging dist that you can use right away:
So for now it's accessible if you specify the version when installing (as shown above). This is because I still have to update the docs and check the other modules. Once I get that done I'll publish to the "latest" tag and mark this as truly complete. Thanks! |
No Problem. Thanks a lot for the fix 👍 |
Hi @hodgef, We get the same issue which @karthikaanoop posted in the above comment. Can you please take a look and give some solution. |
Hey guys, I cannot seem to reproduce this in the following 2.30.0 sandbox (Windows 10, Chrome 84): Can you reproduce that issue in the above sandbox? If not there might be something weird going on. Maybe it only happens on some devices. Note: There's one known limitation with the input selection at the moment. For instance, when you select the text your mouseup has to be within the input bounds (since we don't update caret unless event.target = an input). It's kind of a drawback but the alternative would be to save the last input element in a var which I wouldn't like to do. Best, |
Hello guys - I've gone ahead and merged selection support to master. New users that install simple-keyboard will be getting this functionality. I'll keep an eye out for any issues that might arise with caret positioning. Thanks! |
Hello @PozziCode, Please refer to the comment above:
As I mentioned here, I don't think this edge case warrants changing caret positioning code (which I prefer to leave as-is to prevent bigger issues). I also don't think a lot of people will select text in that manner. If you come across other issues please feel free to create a new ticket. Thanks! Regards, |
Simple-keyboard version
2.29.72
Describe the bug
Selecting text and pressing backspace does not delete selected text
The text was updated successfully, but these errors were encountered: