fix: check hotkey and optimize hotkey input, close #287

This commit is contained in:
GyDi
2022-11-23 17:30:19 +08:00
parent 6bc83d9f27
commit db028665fd
6 changed files with 74 additions and 18 deletions

View File

@@ -73,7 +73,7 @@ export const HotkeyViewer = forwardRef<DialogRef>((props, ref) => {
.filter(Boolean);
try {
patchVerge({ hotkeys });
await patchVerge({ hotkeys });
setOpen(false);
} catch (err: any) {
Notice.error(err.message || err.toString());