Need the strike the keys from system keyboard

This issue has been tracked since 2021-08-12.

Am using the simple keyboard in my project it's nice and fast.
I need to strike the simple keyboard keys the same as in the keys from the system as well from the laptop/desktop keyboard. Is there anything like that? please help out on this.

hodgef wrote this answer on 2021-08-13

Hello @Sudhakarareddyn,

You can use the options physicalKeyboardHighlight and physicalKeyboardHighlightPress combined. This way, pressing your physical keyboard keys will trigger a press from simple-keyboard.

For example:

Francisco Hodge

Sudhakarareddyn wrote this answer on 2021-08-13

Hi Francisco Hodge,
Thank you so much for the fast response, I tried the above solution, it is working fine for English. But for other languages, it's not striking the physical keys. Is there any solution for other languages? Please let me know any solution.

Sudhakara N

hodgef wrote this answer on 2021-08-13

Hey @Sudhakarareddyn,

For physicalKeyboardHighlight to work, your pressed key needs to match what's on your simple-keyboard layout.

If your pressed key is not found in your simple-keyboard layout, it won't work. If your use-case is not satisfied by that built-in logic, you would need to create a custom module such as the following one:

That demo maps one layout to another. You can take that as an example, but you would need to change it according to your needs.

Note: For debugging, you can turn on the debug: true option.

Thank you,
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