bindings_activate_event

function bindings_activate_event(object:GObject.Object, event:Gdk.EventKey):Boolean {
    // Gjs wrapper for gtk_bindings_activate_event()
}

Looks up key bindings for object to find one matching event, and if one was found, activate it.

Since 2.4

object

a GObject.Object (generally must be a widget)

event

a Gdk.EventKey

Returns

true if a matching key binding was found