AccelMap.addEntry
void addEntry(string accelPath, uint accelKey, gdk.types.ModifierType accelMods)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.accel_map.AccelMap.changeEntry].
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 #GQuark. Therefore, if you pass a static string, you can save some memory by interning it first with [glib.global.internStaticString].
Parameters
accelPath | valid accelerator path |
accelKey | the accelerator key |
accelMods | the accelerator modifiers |