mirror of
https://github.com/logseq/logseq.git
synced 2026-05-05 19:36:35 +00:00
feat: add shortcut t c to toggle Contents
This commit is contained in:
@@ -278,11 +278,13 @@
|
||||
(state/sidebar-add-block! (state/get-current-repo) "help" :help nil)))
|
||||
;; c
|
||||
67 (fn [state e]
|
||||
(when (and (not (util/input? (gobj/get e "target")))
|
||||
(not (gobj/get e "shiftKey"))
|
||||
(not (gobj/get e "ctrlKey"))
|
||||
(not (gobj/get e "altKey"))
|
||||
(not (gobj/get e "metaKey")))
|
||||
(when (and
|
||||
(string/starts-with? (state/get-current-repo) "https://")
|
||||
(not (util/input? (gobj/get e "target")))
|
||||
(not (gobj/get e "shiftKey"))
|
||||
(not (gobj/get e "ctrlKey"))
|
||||
(not (gobj/get e "altKey"))
|
||||
(not (gobj/get e "metaKey")))
|
||||
(when-let [repo-url (state/get-current-repo)]
|
||||
(when-not (state/get-edit-input-id)
|
||||
(util/stop e)
|
||||
|
||||
Reference in New Issue
Block a user