ShortcutManager

class ShortcutManager(*args, **kwargs)

Implementations: AboutDialog, AppChooserDialog, ApplicationWindow, Assistant, ColorChooserDialog, Dialog, EmojiChooser, FileChooserDialog, FontChooserDialog, MessageDialog, PageSetupUnixDialog, Popover, PopoverMenu, PrintUnixDialog, ShortcutsWindow, Window

The GtkShortcutManager interface 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 MANAGED.

Virtual Methods

class ShortcutManager
do_add_controller(controller: ShortcutController) None

Add a GtkShortcutController to be managed.

Parameters:

controller

do_remove_controller(controller: ShortcutController) None

Remove a GtkShortcutController that had previously been added

Parameters:

controller