An unusual Google Keyboard bug

The author discusses a subtle bug with Gboard on Android where backspaces don’t work correctly on certain websites like the Guardian crossword and Typescript playground. This issue seems to be specific to Gboard on Android, causing incorrect keycodes to be issued during keydown/keypress/keyup events. The bug also affects Chrome and Firefox on Android but manifests differently. A workaround is suggested for developers needing to listen for the Backspace key, involving the beforeinput event. The author reaches out to Gboard developers for insight and provides a workaround for React users as well. The cause of the bug remains unknown.

https://weiyen.net/articles/an-unusual-google-keyboard-bug

To top