Geany dev
Data Fields
GeanyKeyBinding Struct Reference

Represents a single keybinding action. More...

#include <keybindings.h>

Data Fields

GeanyKeyCallback callback
 Function called when the key combination is pressed, or NULL to use the group callback (preferred). More...
 
guint key
 Key value in lower-case, such as GDK_KEY_a or 0.
 
gchar * label
 Label used in the preferences dialog keybindings tab. More...
 
GtkWidget * menu_item
 Optional widget to set an accelerator for, or NULL.
 
GdkModifierType mods
 Modifier keys, such as GDK_CONTROL_MASK or 0.
 
gchar * name
 Key name for the configuration file, such as "menu_new".
 

Detailed Description

Represents a single keybinding action.

Use keybindings_set_item() to set.

Field Documentation

◆ callback

GeanyKeyCallback GeanyKeyBinding::callback

Function called when the key combination is pressed, or NULL to use the group callback (preferred).

See also
plugin_set_key_group().

◆ label

gchar* GeanyKeyBinding::label

Label used in the preferences dialog keybindings tab.

May contain underscores - these won't be displayed.