mirror of
https://github.com/logseq/logseq.git
synced 2026-05-05 19:36:35 +00:00
refactor(editor): fix on-key-down mixin
Add both explicit options: 1. :not-match-handler 2. :all-handler
This commit is contained in:
@@ -294,9 +294,7 @@
|
||||
(when-let [repo-url (state/get-current-repo)]
|
||||
(when-not (state/get-edit-input-id)
|
||||
(util/stop e)
|
||||
(state/set-modal! commit/add-commit-message)))))}
|
||||
(fn [e key-code]
|
||||
nil))))
|
||||
(state/set-modal! commit/add-commit-message)))))})))
|
||||
{:did-mount (fn [state]
|
||||
(keyboards/bind-shortcuts!)
|
||||
state)}
|
||||
@@ -359,4 +357,4 @@
|
||||
;; :on-click (fn []
|
||||
;; (state/set-left-sidebar-open! (not (state/get-left-sidebar-open?))))}
|
||||
;; (if (state/sub :ui/left-sidebar-open?) "<" ">")]
|
||||
)])))
|
||||
)])))
|
||||
|
||||
Reference in New Issue
Block a user