Skip to content

inputMethod: Check return value when letting IM handle virtual keys

Carlos Garnacho requested to merge wip/carlosg/fallback-im-virtual-keys into main
When propagating keys from the OSK, we usually feed these directly to
the IBusInputContext and let the IM handle the effects of this virtual
key event (which may also include feeding a key event back to us).

But these functions may also return a FALSE value if the key was "let
through" by the IM, which means the ball is in our yard again, and
we are responsible of letting this event get to its destination.

If that happens, just fall through, so the string is committed to
the client as an UTF-8 string, or propagated through keyboard events.

Closes: #5930 (closed)

Merge request reports