Object Hierarchy:

Object hierarchy for Shortcut


[ CCode ( type_id = "gtk_shortcut_get_type ()" ) ]
public class Shortcut : Object

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 Widgets 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.

Namespace: Gtk
Package: gtk4



Creation methods:


Inherited Members: