by suzhe · 2y ago · 0 comments
Gboard does it in this way for many reasons, but the side effect is that the app should not use a normal text box and expect to receive all key events. It's different than using a physical keyboard on a desktop/laptop computer. That said, do not expect a virtual keyboard to behave in the same way as a physical keyboard.
The workaround mentioned in the article makes sense. Another possible solution for apps that want to receive raw key events is to use a password input box instead of a normal text box.
It’s definitely a bug, because the design choice they made breaks invariants and causes buggy behaviour in otherwise functioning code.
Otherwise it would be like saying “segfaulting randomly is actually not a bug, but rather a side effect caused by a design choice we made to have sloppy code and terrible memory management”.