IMContext.filterKey

bool filterKey(bool press, gdk.surface.Surface surface, gdk.device.Device device, uint time, uint keycode, gdk.types.ModifierType state, int group)

Allow an input method to forward key press and release events to another input method without necessarily having a [gdk.event.Event] available.

Parameters

presswhether to forward a key press or release event
surfacethe surface the event is for
devicethe device that the event is for
timethe timestamp for the event
keycodethe keycode for the event
statemodifier state for the event
groupthe active keyboard group for the event

Returns

true if the input method handled the key event.