"^" does not call up layoutCandidates selection properly

This issue has been tracked since 2022-07-25.

Simple-keyboard version
3.4.0 stable

Describe the bug
Add this code

  layoutCandidates: {
    '^': 'â Â ê Ê î Î ô Ô û Û'

to e.g. the french layout.

Pressing the ^ key on the virtual keyboard just prints "^" to the input field instead of opening the layoutCandidates selection which would be the expected behaviour.

After you have entered one or more characters in the input field, surprisingly the layoutCandidates selection field appears when you delete all characters, e.g. with the backspace key. This happens even if "^" was not used at all, but any other key. Expected behaviour would be the layoutCandidates selection field not showing up when the input field is emptied.

hodgef wrote this answer on 2022-08-09

Hey @gvolt, thanks for reporting this issue!

The issue was that "^" is a special regex character and needed to be escaped. The fix has been deployed to the latest version of simple-keyboard.

Francisco Hodge

gvolt wrote this answer on 2022-08-09

Thanks a lot @hodgef! Keep up the excellent work.

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-06
Star Count 1738
Watcher Count 20
Fork Count 130
Issue Count 0


Issue Title Created Date Updated Date