UNPKG

hyperterm-register-shortcut

Version:

Register user-configurable global shortcuts for HyperTerm which respect config changes

8 lines (7 loc) 204 B
module.exports = function getShortcutFromConfig (key, config) { return ( (config.hotkeys && config.hotkeys[key]) || (config[key] && config[key]['hotkey']) || config[`${key}Shortcut`] ); }