fix: search bar cannot copy

This commit is contained in:
Weihua Lu
2021-05-19 18:20:41 +08:00
parent 543904a532
commit 57d0436a60
2 changed files with 15 additions and 3 deletions

View File

@@ -256,6 +256,12 @@
:binding "mod+c mod+r"
:fn #(repo-handler/re-index! nfs-handler/rebuild-index!)}}
:shortcut.handler/misc
;; always overrides the copy due to "mod+c mod+s"
{:misc/copy
{:binding "mod+c"
:fn (fn [] (js/document.execCommand "copy"))}}
:shortcut.handler/global-non-editing-only
^{:before m/enable-when-not-editing-mode!}
{:ui/toggle-document-mode