Gtk.AccelGroup.prototype.activate
function activate(accel_quark:GLib.Quark, acceleratable:GObject.Object, accel_key:Number, accel_mods:Gdk.ModifierType):Boolean { // Gjs wrapper for gtk_accel_group_activate() }
Finds the first accelerator in accel_group that matches accel_key and accel_mods, and activates it.
- accel_quark
the quark for the accelerator name
- acceleratable
the GObject.Object, usually a Gtk.Window, on which to activate the accelerator
- accel_key
accelerator keyval from a key event
- accel_mods
keyboard state mask from a key event
- Returns
true if an accelerator was activated and handled this keypress