(key)
| 523 | let currentHotkey = GM_getValue(STORAGE_KEY, DEFAULT_KEY) |
| 524 | |
| 525 | function bindHotkey(key) { |
| 526 | Mousetrap.reset() |
| 527 | Mousetrap.bind(key, function () { |
| 528 | startSelecting() |
| 529 | }) |
| 530 | } |
| 531 | |
| 532 | bindHotkey(currentHotkey) |
| 533 | GM_registerMenuCommand(translate.hotkey1, openHotkeyUI) |
no test coverage detected