fix: move shortcut install to handler start

This commit is contained in:
Weihua Lu
2021-04-15 15:51:19 +08:00
parent 212e2592d1
commit fd0742b1f3
3 changed files with 6 additions and 6 deletions

View File

@@ -276,12 +276,6 @@
(state/hide-custom-context-menu!)
(editor-handler/clear-selection! e)))))
{:did-mount (fn [state]
(shortcut/install-shortcuts!)
state)
:will-unmount (fn [state]
(shortcut/uninstall-shortcuts!)
state)}
[state route-match main-content]
(let [{:keys [open? close-fn open-fn]} state
close-fn (fn []