Skip to main content

Variable: ShortcutsGroup

const ShortcutsGroup: "ShortcutsGroup"

Defined in: react/src/generated/jsx.ts:15066

A GtkShortcutsGroup represents a group of related keyboard shortcuts or gestures.

The group has a title. It may optionally be associated with a view of the application, which can be used to show only relevant shortcuts depending on the application context.

This widget is only meant to be used with [class@Gtk.ShortcutsWindow].

The recommended way to construct a GtkShortcutsGroup is with [class@Gtk.Builder], by using the <child> tag to populate a GtkShortcutsGroup with one or more [class@Gtk.ShortcutsShortcut] instances.

If you need to add a shortcut programmatically, use [method@Gtk.ShortcutsGroup.add_shortcut].