Weird behavior when key is clicked using the right button of the mouse

This issue has been tracked since 2021-11-10.

Simple-keyboard version
The used in demo site (https://hodgef.com/simple-keyboard/demos/)

Describe the bug
When a key is clicked with the right button of the mouse (whatever reason: by mistake, a child, ...) the input key is endlessly repeated until new click.
Tested with Chrome Version 95.0.4638.69 (Official Build) (64-bit)

hodgef wrote this answer on 2021-11-10

Hey @sfasp,

Sorry, I cannot repro the issue. Not sure why you're getting that behavior, but if PointerEvents are giving you trouble you can use MouseEvents with the option: useMouseEvents: true

cnr2

Regards,
Francisco Hodge

sfasp wrote this answer on 2021-11-10

Hi @hodgef,
Thank you very much for your fast response.
Here you have a video reproducing the issue.
I will try your suggestion.

issue.mp4

Regards,
Santi

hodgef wrote this answer on 2021-11-10

Hey Santi, is that Ubuntu? I still cannot repro the issue so it will be tough to proceed. As a workaround: Besides using useMouseEvents you can alternatively use disableButtonHold to get rid of button hold altogether.

If you do have Ubuntu/Linux I will try testing there, but if you have Windows I'm afraid I won't be able to proceed until I can repro.

Regards,
Francisco Hodge

sfasp wrote this answer on 2021-11-10

Hi,
Yes, it is Ubuntu 20.04.
- With Firefox 94.0 I cannot reproduce it.
- With Edge 97.0.1060.2 I can reproduce it (being Chromium based, it is not a surprise, I guess)

Setting disableButtonHold to true seems to fix the issue. Great! Thank you very much once more.

Regards,
Santi

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