Application.setAccelsForAction

void setAccelsForAction(string detailedActionName, string[] accels)

Sets zero or more keyboard accelerators that will trigger the given action.

The first item in accels will be the primary accelerator, which may be displayed in the UI.

To remove all accelerators for an action, use an empty, zero-terminated array for accels.

For the detailed_action_name, see [gio.action.Action.parseDetailedName] and [gio.action.Action.printDetailedName].

Parameters

detailedActionNamea detailed action name, specifying an action and target to associate accelerators with
accelsa list of accelerators in the format understood by funcGtk.accelerator_parse