Gtk.AccelGroup.prototype.connect
function connect(accel_key:Number, accel_mods:Gdk.ModifierType, accel_flags:Gtk.AccelFlags, closure:GObject.Closure):void { // Gjs wrapper for gtk_accel_group_connect() }
Installs an accelerator in this group. When accel_group is being activated in response to a call to accel_groups_activate, closure will be invoked if the accel_key and accel_mods from accel_groups_activate match those of this connection.
The signature used for the closure is that of Gtk.AccelGroupActivate.
Note that, due to implementation details, a single closure can only be connected to one accelerator group.
- accel_key
key value of the accelerator
- accel_mods
modifier combination of the accelerator
- accel_flags
a flag mask to configure this accelerator
- closure
closure to be executed upon accelerator activation