From fec181f27e3b1ddcb2ccf1782e42b00655d84337 Mon Sep 17 00:00:00 2001 From: benyueer <347201906@qq.com> Date: Mon, 1 Apr 2024 16:32:44 +0800 Subject: [PATCH] fix: hotkeys not unbind --- src/stores/Annotation/Annotation.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stores/Annotation/Annotation.js b/src/stores/Annotation/Annotation.js index 257ab5aae..a1303dcf8 100644 --- a/src/stores/Annotation/Annotation.js +++ b/src/stores/Annotation/Annotation.js @@ -726,6 +726,7 @@ export const Annotation = types beforeDestroy() { self.autosave && self.autosave.cancel && self.autosave.cancel(); + hotkeys.unbindAll(); }, setDraftId(id) {