:right-sidebar: True ShortcutManager =================================================================== .. currentmodule:: gi.repository.Gtk .. class:: ShortcutManager(*args, **kwargs) :no-contents-entry: Implementations: :class:`~gi.repository.Gtk.AboutDialog`, :class:`~gi.repository.Gtk.AppChooserDialog`, :class:`~gi.repository.Gtk.ApplicationWindow`, :class:`~gi.repository.Gtk.Assistant`, :class:`~gi.repository.Gtk.ColorChooserDialog`, :class:`~gi.repository.Gtk.Dialog`, :class:`~gi.repository.Gtk.EmojiChooser`, :class:`~gi.repository.Gtk.FileChooserDialog`, :class:`~gi.repository.Gtk.FontChooserDialog`, :class:`~gi.repository.Gtk.MessageDialog`, :class:`~gi.repository.Gtk.PageSetupUnixDialog`, :class:`~gi.repository.Gtk.Popover`, :class:`~gi.repository.Gtk.PopoverMenu`, :class:`~gi.repository.Gtk.PrintUnixDialog`, :class:`~gi.repository.Gtk.ShortcutsWindow`, :class:`~gi.repository.Gtk.Window` The ``GtkShortcutManager`` interface is used to implement shortcut scopes. This is important for :obj:`~gi.repository.Gtk.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 :obj:`~gi.repository.Gtk.Window` and :obj:`~gi.repository.Gtk.Popover`\. Every widget that implements ``GtkShortcutManager`` will be used as a :const:`~gi.repository.Gtk.ShortcutScope.MANAGED`. Virtual Methods --------------- .. rst-class:: interim-class .. class:: ShortcutManager :no-index: .. method:: do_add_controller(controller: ~gi.repository.Gtk.ShortcutController) -> None The type of the None singleton. :param controller: .. method:: do_remove_controller(controller: ~gi.repository.Gtk.ShortcutController) -> None The type of the None singleton. :param controller: