Called via gtk.imcontext.IMContext.filterKeypress on every
key press or release event. Every non-trivial input method needs to
override this in order to implement the mapping from key events to text.
A return value of true indicates to the caller that the event was
consumed by the input method. In that case, the gtk.imcontext.IMContext.commit
signal should be emitted upon completion of a key sequence to pass the
resulting text back to the input widget. Alternatively, false may be
returned to indicate that the event wasn’t handled by the input method.
If a builtin mapping exists for the key, it is used to produce a
character.
Called via gtk.imcontext.IMContext.filterKeypress on every key press or release event. Every non-trivial input method needs to override this in order to implement the mapping from key events to text. A return value of true indicates to the caller that the event was consumed by the input method. In that case, the gtk.imcontext.IMContext.commit signal should be emitted upon completion of a key sequence to pass the resulting text back to the input widget. Alternatively, false may be returned to indicate that the event wasn’t handled by the input method. If a builtin mapping exists for the key, it is used to produce a character.