MCPcopy Index your code
hub / github.com/Bistutu/FluentRead / setHotkey

Function setHotkey

userscripts.js:619–638  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

617 }
618 ,
619 setHotkey() {
620 Swal.fire({
621 title: '快捷键设置',
622 text: '请选择鼠标快捷键',
623 input: 'select',
624 inputValue: util.getValue('hotkey'),
625 inputOptions: shortcutManager.hotkeyOptions,
626 confirmButtonText: '保存并刷新页面',
627 cancelButtonText: '取消',
628 showCancelButton: true,
629 customClass: toastClass,
630 }).then(async (result) => {
631 if (result.isConfirmed) {
632 util.setValue('hotkey', result.value);
633 setShortcut(result.value);
634 toast.fire({icon: 'success', title: '快捷键设置成功!'});
635 history.go(0); // 刷新页面
636 }
637 });
638 }
639 ,
640 setLanguage(lang) {
641 let args = lang === 'from' ? {

Callers

nothing calls this directly

Calls 1

setShortcutFunction · 0.85

Tested by

no test coverage detected