Skip to content

Commit

Permalink
Merge branch 'feat/outliner-core' of github.com:logseq/logseq into fe…
Browse files Browse the repository at this point in the history
…at/outliner-core
  • Loading branch information
defclass committed Apr 12, 2021
2 parents 89f2f07 + 92e7fa3 commit a2d0022
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main/frontend/handler/history.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,9 @@

(defn undo!
[]
(do
(editor/save-current-block-when-idle! {:check-idle? false})
(let [{:keys [editor-cursor]} (undo-redo/undo)]
(restore-cursor! editor-cursor))))
(editor/save-current-block-when-idle! {:check-idle? false})
(let [{:keys [editor-cursor]} (undo-redo/undo)]
(restore-cursor! editor-cursor)))

(defn redo!
[]
Expand Down
4 changes: 4 additions & 0 deletions src/main/frontend/modules/shortcut/handler.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
:editor/undo history/undo!
:editor/redo history/redo!

:editor/undo history/undo!

:editor/redo history/redo!

:ui/toggle-brackets config-handler/toggle-ui-show-brackets!
:go/search route-handler/go-to-search!
:go/journals route-handler/go-to-journals!
Expand Down

0 comments on commit a2d0022

Please sign in to comment.