Package: gtk
Function gtk-application-add-accelerator
Lambda Listgtk-application-add-accelerator (application accel name &optional parameter) ArgumentsDetails
Installs an accelerator that will cause the named action to be activated
when the key combination specificed by the accelerator is pressed. The accel argument must be a string that can be parsed by the gtk-accelerator-parse function, e.g. "<Primary>q" or "<Control><Alt>p". The name argument must be the name of an action as it would be used in the application menu, i.e. actions that have been added to the application are referred to with an "app." prefix, and window specific actions with a "win." prefix. The gtk-application instance also extracts accelerators out of 'accel' attributes in the g-menu-model objects passed to the gtk-application-app-menu and gtk-application-menubar functions, which is usually more convenient than calling this function for each accelerator. Warning | See also |
2021-9-8