Shortcut
A GtkShortcut
describes a keyboard shortcut.
It contains a description of how to trigger the shortcut via a class@Gtk.ShortcutTrigger and a way to activate the shortcut on a widget via a class@Gtk.ShortcutAction.
The actual work is usually done via class@Gtk.ShortcutController, which decides if and when to activate a shortcut. Using that controller directly however is rarely necessary as various higher level convenience APIs exist on GtkWidget
s that make it easier to use shortcuts in GTK.
GtkShortcut
does provide functionality to make it easy for users to work with shortcuts, either by providing informational strings for display purposes or by allowing shortcuts to be configured.
Constructors
Properties
Functions
Gets the action that is activated by this shortcut.
Gets the arguments that are passed when activating the shortcut.
Gets the trigger used to trigger @self.
Sets the new action for @self to be @action.
Sets the arguments to pass when activating the shortcut.
Sets the new trigger for @self to be @trigger.