Skip to content

Commit

Permalink
fix(settings): ctrl and cmd misuse in settings
Browse files Browse the repository at this point in the history
Revert logseq#3170 (partially)
Fixes logseq#3574
  • Loading branch information
andelf committed Jan 11, 2022
1 parent aed7ef8 commit 76c7a43
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/main/frontend/modules/shortcut/data_helper.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,10 @@
(defn decorate-binding [binding]
(-> (if (string? binding) binding (str/join "+" binding))
(str/replace "mod" (if util/mac? "cmd" "ctrl"))
(str/replace "ctrl" (if util/mac? "cmd" "ctrl"))
(str/replace "cmd" (if util/mac? "cmd" "ctrl"))
(str/replace "alt" (if util/mac? "opt" "alt"))
(str/replace "shift+/" "?")
(str/replace "left" "")
(str/replace "right" "")
(str/replace "+" " ")
(str/replace "open-square-bracket" "[")
(str/replace "close-square-bracket" "]")
(str/lower-case)))
Expand Down

0 comments on commit 76c7a43

Please sign in to comment.