# {py:mod}`simvx.core.shortcuts` ```{py:module} simvx.core.shortcuts ``` ```{autodoc2-docstring} simvx.core.shortcuts :allowtitles: ``` ## Module Contents ### Classes ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`Shortcut ` - ```{autodoc2-docstring} simvx.core.shortcuts.Shortcut :summary: ``` * - {py:obj}`ShortcutManager ` - ```{autodoc2-docstring} simvx.core.shortcuts.ShortcutManager :summary: ``` ```` ### API `````{py:class} Shortcut(name: str, key: str, modifiers: frozenset[str], callback: collections.abc.Callable[[], object], combo: str, chord_key: str | None = None, chord_modifiers: frozenset[str] | None = None, description: str = '', category: str = '') :canonical: simvx.core.shortcuts.Shortcut ```{autodoc2-docstring} simvx.core.shortcuts.Shortcut ``` ```{rubric} Initialization ``` ```{autodoc2-docstring} simvx.core.shortcuts.Shortcut.__init__ ``` ````{py:attribute} __slots__ :canonical: simvx.core.shortcuts.Shortcut.__slots__ :value: > ('name', 'key', 'modifiers', 'callback', 'combo', 'chord_key', 'chord_modifiers', 'description', 'ca... ```{autodoc2-docstring} simvx.core.shortcuts.Shortcut.__slots__ ``` ```` ````` `````{py:class} ShortcutManager() :canonical: simvx.core.shortcuts.ShortcutManager ```{autodoc2-docstring} simvx.core.shortcuts.ShortcutManager ``` ```{rubric} Initialization ``` ```{autodoc2-docstring} simvx.core.shortcuts.ShortcutManager.__init__ ``` ````{py:method} register(name: str, keys: str, callback: collections.abc.Callable[[], object], description: str = '', category: str = '') -> None :canonical: simvx.core.shortcuts.ShortcutManager.register ```{autodoc2-docstring} simvx.core.shortcuts.ShortcutManager.register ``` ```` ````{py:method} unregister(name: str) -> None :canonical: simvx.core.shortcuts.ShortcutManager.unregister ```{autodoc2-docstring} simvx.core.shortcuts.ShortcutManager.unregister ``` ```` ````{py:method} rebind(name: str, new_keys: str) -> None :canonical: simvx.core.shortcuts.ShortcutManager.rebind ```{autodoc2-docstring} simvx.core.shortcuts.ShortcutManager.rebind ``` ```` ````{py:method} handle_key(key: str, modifiers: dict[str, bool] | set[str] | frozenset[str] | None = None) -> bool :canonical: simvx.core.shortcuts.ShortcutManager.handle_key ```{autodoc2-docstring} simvx.core.shortcuts.ShortcutManager.handle_key ``` ```` ````{py:method} tick(dt: float) -> None :canonical: simvx.core.shortcuts.ShortcutManager.tick ```{autodoc2-docstring} simvx.core.shortcuts.ShortcutManager.tick ``` ```` ````{py:method} search(query: str) -> list[simvx.core.shortcuts.Shortcut] :canonical: simvx.core.shortcuts.ShortcutManager.search ```{autodoc2-docstring} simvx.core.shortcuts.ShortcutManager.search ``` ```` ````{py:method} get_bindings_map() -> dict[str, str] :canonical: simvx.core.shortcuts.ShortcutManager.get_bindings_map ```{autodoc2-docstring} simvx.core.shortcuts.ShortcutManager.get_bindings_map ``` ```` ````{py:method} load_bindings(bindings: dict[str, str]) -> None :canonical: simvx.core.shortcuts.ShortcutManager.load_bindings ```{autodoc2-docstring} simvx.core.shortcuts.ShortcutManager.load_bindings ``` ```` ````{py:method} list_shortcuts() -> dict[str, str] :canonical: simvx.core.shortcuts.ShortcutManager.list_shortcuts ```{autodoc2-docstring} simvx.core.shortcuts.ShortcutManager.list_shortcuts ``` ```` `````