Skip to content

Gtk.ShortcutManager

interface

An interface that is used to implement shortcut scopes.

This is important for 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 Window and Popover.

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

Virtual methods

do_add_controller

def do_add_controller(self, controller: ShortcutController) -> None

Add a GtkShortcutController to be managed.

do_remove_controller

def do_remove_controller(self, controller: ShortcutController) -> None

Remove a GtkShortcutController that had previously been added