Cursor alignment and text adding issue in hebrew keyboard

This issue has been tracked since 2022-11-15.

^2.31.4
I have 2.31.4 in my local, however I have also tried with latest version in this given demo URL, issue exist there also. hebrew keyboard

Scenario:
As you type hebrew letters from keyboard it works fine, suppose after finished typing you want to add some extra text at the first word or starting of the line, you move your cursor there and type something at that time that text does not appear on the exact location I moved my cursor but beyond it.

Screen recording
Screen recording link

hodgef wrote this answer on 2022-12-01

Hello @chiragbytes,

I think this issue has to do with the usage of rtl: true, which adds two invisible characters to the input.

When set to true, this option adds unicode directional control characters \u202B and \u202C to onChange() and getInput() returns. This helps to address issues when using simple-keyboard with right-to-left layouts.

https://hodgef.com/simple-keyboard/documentation/options/rtl/

For example, with the rtl option enabled:
image

And without:
image

When I added this option I didn't take into account its effects on caret positioning. I will put out a fix for that asap.

hodgef wrote this answer on 2022-12-01

I have added a tentative fix for this issue in the latest release. Please feel free to update and try it out.

Regards,
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

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date