fix: srs cards shortcuts not working

close #4230
This commit is contained in:
Tienson Qin
2022-02-17 13:11:14 +08:00
parent 14edd513d7
commit 26be474e55
7 changed files with 27 additions and 27 deletions

View File

@@ -86,7 +86,8 @@
:editor/escape-editing {:desc "Escape editing"
:binding false
:fn (fn [_ _] (editor-handler/escape-editing))}
:fn (fn [_ _]
(editor-handler/escape-editing))}
:editor/backspace {:desc "Backspace / Delete backwards"
:binding "backspace"
@@ -470,11 +471,12 @@
:auto-complete/shift-complete])
:shortcut.handler/cards
(build-category-map [:cards/toggle-answers
:cards/next-card
:cards/forgotten
:cards/remembered
:cards/recall])
(-> (build-category-map [:cards/toggle-answers
:cards/next-card
:cards/forgotten
:cards/remembered
:cards/recall])
(with-meta {:before m/enable-when-not-editing-mode!}))
:shortcut.handler/block-editing-only
(->