add_entry

function add_entry(accel_path:String, accel_key:Number, accel_mods:Gdk.ModifierType):void {
    // Gjs wrapper for gtk_accel_map_add_entry()
}

Registers a new accelerator with the global accelerator map. This function should only be called once per accel_path with the canonical accel_key and accel_mods for this path. To change the accelerator during runtime programatically, use Gtk.change_entry.

Set accel_key and accel_mods to 0 to request a removal of the accelerator.

Note that accel_path string will be stored in a GLib.Quark. Therefore, if you pass a static string, you can save some memory by interning it first with GLib.intern_static_string.

accel_path

valid accelerator path

accel_key

the accelerator key

accel_mods

the accelerator modifiers