fix: ctrl+c not working

pull/890/head^2
Tienson Qin 2020-12-15 15:20:08 +08:00
parent a82f68f621
commit 4376af78df
1 changed files with 6 additions and 3 deletions

View File

@ -72,8 +72,7 @@
"ctrl+h" editor-handler/highlight-format!
"ctrl+shift+a" editor-handler/select-all-blocks!
"alt+shift+up" (fn [state e] (editor-handler/move-up-down e true))
"alt+shift+down" (fn [state e] (editor-handler/move-up-down e false))
"ctrl+c ctrl+s" (fn [state e] (search-handler/rebuild-indices!))}
"alt+shift+down" (fn [state e] (editor-handler/move-up-down e false))}
(medley/map-keys util/->system-modifier)))
(defonce chords
@ -83,7 +82,11 @@
"t r" ui-handler/toggle-right-sidebar!
"t e" state/toggle-new-block-shortcut!
"s" route-handler/toggle-between-page-and-file!
})
"ctrl+c ctrl+s" (fn [state e]
(search-handler/rebuild-indices!)
;; return false to prevent default browser behavior
;; and stop event from bubbling
false)})
(defonce bind! (gobj/get mousetrap "bind"))