mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 18:36:43 +00:00
Electron only commands should only show up in electron
Follow up to #6443
This commit is contained in:
committed by
Tienson Qin
parent
057ebd8e4b
commit
ab04fe3bfd
@@ -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!}
|
||||
|
||||
Reference in New Issue
Block a user