Module: Gtk::ShortcutManager

Defined in:
(unknown)

Overview

The GtkShortcutManager interface is used to implement shortcut scopes.

This is important for [ifaceGtk.Native] widgets that have their own surface, since the event controllers that are used to implement managed and global scopes are limited to the same native.

Examples for widgets implementing GtkShortcutManager are [classGtk.Window] and [classGtk.Popover].

Every widget that implements GtkShortcutManager will be used as a %GTK_SHORTCUT_SCOPE_MANAGED.

Instance Method Summary collapse

Instance Method Details

#add_controller(controller) ⇒ nil

Add a GtkShortcutController to be managed.

Parameters:

Returns:

  • (nil)

#remove_controller(controller) ⇒ nil

Remove a GtkShortcutController that had previously been added

Parameters:

Returns:

  • (nil)