Bug with mouse selection of the input

This issue has been tracked since 2022-06-20.

Simple-keyboard version
Version: 3.4.94

Hello Francisco,
When you select multiple letters of your input and then just click to place the caret, the selection disappears as expected but pressing a button of a keyboard act like the selection is still there.
If you select "abc" and then click after the "c", pressing "d" will replace "abc" instead of just adding the "d".

Really nice project by the way!


hodgef wrote this answer on 2022-07-02

Hello Bastien,

I believe this is a Chromium bug. The mouse up event that is fired when we click to unselect the text has the wrong event.target.selectionStart and event.target.selectionEnd values.


Repro: https://jsfiddle.net/xcf5saze/7/

If you can repo the issue, it might be worth reporting to https://bugs.chromium.org/p/chromium/issues/list.
(Update: I don't see this issue in Firefox, so it most definitely is a Chromium bug.)

Francisco Hodge

More Details About Repo
Owner Name hodgef
Repo Name simple-keyboard
Full Name hodgef/simple-keyboard
Language JavaScript
Created Date 2018-03-02
Updated Date 2022-12-02
Star Count 1737
Watcher Count 20
Fork Count 130
Issue Count 0


Issue Title Created Date Updated Date