Skip to content

Commit

Permalink
Electron only commands should only show up in electron
Browse files Browse the repository at this point in the history
Follow up to logseq#6443
  • Loading branch information
logseq-cldwalker authored and tiensonqin committed Aug 25, 2022
1 parent 057ebd8 commit ab04fe3
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/main/frontend/modules/shortcut/config.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -250,18 +250,16 @@
(route-handler/go-to-search! :global))}

:go/electron-find-in-page {:binding "mod+f"
:fn #(when (util/electron?)
(search-handler/open-find-in-page!))}

:inactive (not (util/electron?))
:fn #(search-handler/open-find-in-page!)}
:go/electron-jump-to-the-next {:binding ["enter" "mod+g"]
:fn (fn [_state _e]
(when (util/electron?)
(search-handler/loop-find-in-page! false)))}
:inactive (not (util/electron?))
:fn #(search-handler/loop-find-in-page! false)}

:go/electron-jump-to-the-previous {:binding ["shift+enter" "mod+shift+g"]
:fn (fn [_state _e]
(when (util/electron?)
(search-handler/loop-find-in-page! true)))}
:inactive (not (util/electron?))
:fn #(search-handler/loop-find-in-page! true)}

:go/journals {:binding "g j"
:fn route-handler/go-to-journals!}
Expand Down

0 comments on commit ab04fe3

Please sign in to comment.