bootstack.shortcuts.get_shortcuts#

bootstack.shortcuts.get_shortcuts()#

Get the global Shortcuts service instance.

Returns:

The singleton Shortcuts instance.

Return type:

Shortcuts

Examples

from bootstack.shortcuts import get_shortcuts

shortcuts = get_shortcuts()
shortcuts.register("save", "Mod+S", save_file)
shortcuts.bind_to(app)