KeyboardShortcut¶
- class glue.config.KeyboardShortcut[source]¶
Bases:
glue.config.DictRegistry
Stores keyboard shortcuts. The members property is a dictionary within a dictionary of keyboard shortcuts, which is represented as (viewer,(keybind,function)). The
function
should take one item, which is a reference to the session.Methods Summary
__call__
(keybind, valid_viewers)This is provided so that registry instances can be used as decorators.
add
(valid_viewers, keybind, function)Add a new keyboard shortcut
Methods Documentation