mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 18:36:43 +00:00
enhance(ui): disable left menu button when pdf view active
This commit is contained in:
@@ -49,6 +49,9 @@
|
||||
:pdf/next-page {:binding "alt+n"
|
||||
:fn pdf-utils/next-page}
|
||||
|
||||
:pdf/close {:binding "alt+x"
|
||||
:fn #(state/set-state! :pdf/current nil)}
|
||||
|
||||
:auto-complete/complete {:binding "enter"
|
||||
:fn ui-handler/auto-complete-complete}
|
||||
|
||||
@@ -402,7 +405,8 @@
|
||||
|
||||
:shortcut.handler/pdf
|
||||
(-> (build-category-map [:pdf/previous-page
|
||||
:pdf/next-page])
|
||||
:pdf/next-page
|
||||
:pdf/close])
|
||||
(with-meta {:before m/enable-when-not-editing-mode!}))
|
||||
|
||||
:shortcut.handler/auto-complete
|
||||
@@ -632,6 +636,7 @@
|
||||
:shortcut.category/others
|
||||
[:pdf/previous-page
|
||||
:pdf/next-page
|
||||
:pdf/close
|
||||
:command/toggle-favorite
|
||||
:command/run
|
||||
:command-palette/toggle
|
||||
|
||||
Reference in New Issue
Block a user