♻️ Refactor shortcuts and change image shortcut

This commit is contained in:
Andrés Moya 2021-05-07 09:54:26 +02:00
parent 7033ae4f2e
commit ebb6df4696
9 changed files with 50 additions and 50 deletions

View file

@ -155,8 +155,8 @@
:command "c"
:fn #(st/emit! (dwd/select-for-drawing :comments))}
:insert-image {:tooltip "K"
:command "k"
:insert-image {:tooltip (ds/shift "K")
:command "shift+k"
:fn #(-> "image-upload" dom/get-element dom/click)}
:copy {:tooltip (ds/meta "C")

View file

@ -45,7 +45,7 @@
(st/emit! (dw/upload-media-workspace params)))))]
[:li.tooltip.tooltip-right
{:alt (tr "workspace.toolbar.image")
{:alt (tr "workspace.toolbar.image" (sc/get-tooltip :insert-image))
:on-click on-click}
[:*
i/image