Explorar o código

Fix schema so that shortcut disabling is valid

fixes #8580
Gabriel Horner %!s(int64=2) %!d(string=hai) anos
pai
achega
4d55fc4b13

+ 1 - 1
src/main/frontend/schema/handler/common_config.cljc

@@ -37,7 +37,7 @@
     [:org-mode/insert-file-link? :boolean]
     [:org-mode/insert-file-link? :boolean]
     [:shortcuts [:map-of
     [:shortcuts [:map-of
                  :keyword
                  :keyword
-                 [:or :string [:vector :string]]]]
+                 [:or :string false? [:vector :string]]]]
     [:shortcut/doc-mode-enter-for-new-block? :boolean]
     [:shortcut/doc-mode-enter-for-new-block? :boolean]
     [:block/content-max-length :int]
     [:block/content-max-length :int]
     [:ui/show-command-doc? :boolean]
     [:ui/show-command-doc? :boolean]

+ 2 - 2
templates/config.edn

@@ -127,7 +127,7 @@
  ;; 2. ` ` empty space between keys represents key chords. eg: `t s` means press `t` followed by `s`
  ;; 2. ` ` empty space between keys represents key chords. eg: `t s` means press `t` followed by `s`
  ;; 3. `mod` means `Ctrl` for Windows/Linux  and `Command` for Mac
  ;; 3. `mod` means `Ctrl` for Windows/Linux  and `Command` for Mac
  ;; 4. use `false` to disable particular shortcut
  ;; 4. use `false` to disable particular shortcut
- ;; 4. you can define multiple bindings for one action, eg `["ctrl+j" "down"]`
+ ;; 5. you can define multiple bindings for one action, eg `["ctrl+j" "down"]`
  ;; full list of configurable shortcuts are available below:
  ;; full list of configurable shortcuts are available below:
  ;; https://github.com/logseq/logseq/blob/master/src/main/frontend/modules/shortcut/config.cljs
  ;; https://github.com/logseq/logseq/blob/master/src/main/frontend/modules/shortcut/config.cljs
  ;; Example:
  ;; Example:
@@ -135,7 +135,7 @@
  ;; {:editor/new-block       "enter"
  ;; {:editor/new-block       "enter"
  ;;  :editor/new-line        "shift+enter"
  ;;  :editor/new-line        "shift+enter"
  ;;  :editor/insert-link     "mod+shift+k"
  ;;  :editor/insert-link     "mod+shift+k"
- ;;  :editor/hightlight       false
+ ;;  :editor/highlight       false
  ;;  :ui/toggle-settings     "t s"
  ;;  :ui/toggle-settings     "t s"
  ;;  :editor/up              ["ctrl+k" "up"]
  ;;  :editor/up              ["ctrl+k" "up"]
  ;;  :editor/down            ["ctrl+j" "down"]
  ;;  :editor/down            ["ctrl+j" "down"]