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

This commit is contained in:
GyDi
2022-11-23 17:30:19 +08:00
parent c2253e868c
commit de3ca6e237
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());