Get the latest tech news

An unusual Google Keyboard bug


Why backspaces sometimes don't work the way they should.

The bug in the Guardian crosswordIn case you missed it, after typing T-E-S-T, I have to press Backspace 4 times before letters start getting deleted. This is also why backspaces worked after pressing it 4 times - once the word "test" was cleared from the autocomplete suggestions, the correct keyCode 8 was fired Fortunately the workaround here is relatively straightforward - avoid using the onBeforeInput event handler on the input element, and instead manually subscribe to the beforeinput using addEventListener, e.g.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Google Keyboard

Google Keyboard