Can't use SHIFT on Android OSK

The call to closeInputMethodContext in ComponentPeerView::onKeyDown, added in ref da38c1ed2ad695659d35f0d9d7956ae449d6ae63, causes the SHIFT state to be reset on every key down, including when pressing SHIFT (keyboard flickers).

The comment for the commit is simply “TextInputTarget: Improve IME support on Android.”

What was the motivation for the commit? What regression can I expect if I comment out the call to closeInputMethodContext?

Thanks for reporting. I’m able to reproduce this issue on a Pixel 6a running Android 16, but not on a Pixel 3a running Android 12. My guess is that this is a change in behaviour from a recent keyboard version that wasn’t present at the point when the closeInputMethodContext() call was initially introduced.

I’m currently investigating a fix, and will post an update here once we have some progress to report.

Thanks again for reporting, that should be fixed here: