enhance(ui): disable left menu button when pdf view active

This commit is contained in:
charlie
2022-06-01 18:10:07 +08:00
committed by Tienson Qin
parent 5d23dc96a2
commit ec7c72b1e9
3 changed files with 15 additions and 2 deletions

View File

@@ -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