shortcuts#

Application-wide shortcut definitions.

TODO: Create editor widget to make these customizable.

Functions:

add_shortcuts(widget, shortcuts[, context])

Helper function to initialize shortcuts.

connect(shortcuts, key, func)

Helper function to connect a function with a shortcut.

get(shortcuts, k)

Helper function used to retrieve a shortcut.

hint(shortcuts, k)

Get the hint text associated with a shortcut.

string(shortcuts, k)

Returns the string representation of a shortcut.

bookmarks.shortcuts.add_shortcuts(widget, shortcuts, context=QtCore.Qt.WidgetWithChildrenShortcut)[source]#

Helper function to initialize shortcuts.

bookmarks.shortcuts.connect(shortcuts, key, func)[source]#

Helper function to connect a function with a shortcut.

bookmarks.shortcuts.get(shortcuts, k)[source]#

Helper function used to retrieve a shortcut.

bookmarks.shortcuts.hint(shortcuts, k)[source]#

Get the hint text associated with a shortcut.

bookmarks.shortcuts.string(shortcuts, k)[source]#

Returns the string representation of a shortcut.