IMContext.filterKey

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

Parameters

press bool

whether to forward a key press or release event

surface gdk.surface.Surface

the surface the event is for

device gdk.device.Device

the device that the event is for

time uint

the timestamp for the event

keycode uint

the keycode for the event

state gdk.types.ModifierType

modifier state for the event

group int

the active keyboard group for the event

Return Value

Type: bool

true if the input method handled the key event.