dessalines / thumb-key

A privacy-conscious Android keyboard made for your thumbs
GNU Affero General Public License v3.0
981 stars 204 forks source link

Backspace is not firing "keyup" event in browsers when pressed #986

Open GlassGruber opened 2 months ago

GlassGruber commented 2 months ago

Steps to reproduce

You can check here https://codepen.io/Gruber/pen/YzoWPGX

I've setup a simple demo, try type something in the textarea and delete, in the console you will see both keyup and keydown events logged, but not keyup when pressing backspace.

This issue caused a bit of a headache because a script depending on that event was working on a different device but not on mine, luckily I noticed the different keyboards and tested with default android and it worked on my device too.

Expected behavior

When pressing backspace a keyup should be fired inside browsers

Actual behavior

When pressing backspace only keydown event is triggered inside browsers

version of the program

3.3.3

Android version

Android 10

Device

Samsung

Other details

No response

Acknowledgements

dessalines commented 1 month ago

This probably has to do with the drag actions done on the backspace key. Might be difficult to figure this one out.

GlassGruber commented 1 month ago

This probably has to do with the drag actions done on the backspace key. Might be difficult to figure this one out.

I see, the spacebar do fire both event keydown and keyup.