import {shortcut} from '../util/index.js';

function hotkey (s, cb) {
  shortcut.registerShortcut(s, cb);
}

module.exports = hotkey
import {shortcut} from '../util/';

function hotkey (s, cb) {
  shortcut.registerShortcut(s, cb);
}

module.exports = hotkey
Refactor code