0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 15:39:50 -05:00

♻️ 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

View file

@ -2250,15 +2250,15 @@ msgstr "Stift (%s)"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.ellipse"
msgstr "Ellipse (E)"
msgstr "Ellipse (%s)"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.frame"
msgstr "Zeichenfläche (A)"
msgstr "Zeichenfläche (%s)"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.image"
msgstr "Bild (K)"
msgstr "Bild (%s)"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.move"
@ -2266,15 +2266,15 @@ msgstr "Verschieben"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.path"
msgstr "Pfad (P)"
msgstr "Pfad (%s)"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.rect"
msgstr "Rechteck (R)"
msgstr "Rechteck (%s)"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.text"
msgstr "Text (T)"
msgstr "Text (%s)"
#: src/app/main/ui/workspace/sidebar/history.cljs
msgid "workspace.undo.empty"
@ -2404,4 +2404,4 @@ msgid "workspace.updates.update"
msgstr "Aktualisieren"
msgid "workspace.viewport.click-to-close-path"
msgstr "Klicken Sie, um den Pfad zu schließen"
msgstr "Klicken Sie, um den Pfad zu schließen"

View file

@ -2204,15 +2204,15 @@ msgstr "Στροφή (%s)"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.ellipse"
msgstr "Έλλειψη (Ε)"
msgstr "Έλλειψη (%s)"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.frame"
msgstr "Artboard (Α)"
msgstr "Artboard (%s)"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.image"
msgstr "Εικόνα (Κ)"
msgstr "Εικόνα (%s)"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.move"
@ -2220,15 +2220,15 @@ msgstr ""
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.path"
msgstr "Path (Ρ)"
msgstr "Path (%s)"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.rect"
msgstr "Ορθογώνιο (R)"
msgstr "Ορθογώνιο (%s)"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.text"
msgstr "Κείμενο (Τ)"
msgstr "Κείμενο (%s)"
#: src/app/main/ui/workspace/sidebar/history.cljs
msgid "workspace.undo.empty"
@ -2358,4 +2358,4 @@ msgid "workspace.updates.update"
msgstr "Ενημέρωση"
msgid "workspace.viewport.click-to-close-path"
msgstr "Κάντε κλικ για να κλείσετε τη διαδρομή"
msgstr "Κάντε κλικ για να κλείσετε τη διαδρομή"

View file

@ -2417,15 +2417,15 @@ msgstr "Curve (%s)"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.ellipse"
msgstr "Ellipse (E)"
msgstr "Ellipse (%s)"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.frame"
msgstr "Artboard (A)"
msgstr "Artboard (%s)"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.image"
msgstr "Image (K)"
msgstr "Image (%s)"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.move"
@ -2433,15 +2433,15 @@ msgstr "Move"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.path"
msgstr "Path (P)"
msgstr "Path (%s)"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.rect"
msgstr "Rectangle (R)"
msgstr "Rectangle (%s)"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.text"
msgstr "Text (T)"
msgstr "Text (%s)"
#: src/app/main/ui/workspace/sidebar/history.cljs
msgid "workspace.undo.empty"
@ -2571,4 +2571,4 @@ msgid "workspace.updates.update"
msgstr "Update"
msgid "workspace.viewport.click-to-close-path"
msgstr "Click to close the path"
msgstr "Click to close the path"

View file

@ -2422,15 +2422,15 @@ msgstr "Curva (%s)"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.ellipse"
msgstr "Elipse (E)"
msgstr "Elipse (%s)"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.frame"
msgstr "Tablero (A)"
msgstr "Tablero (%s)"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.image"
msgstr "Imagen (K)"
msgstr "Imagen (%s)"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.move"
@ -2438,15 +2438,15 @@ msgstr "Mover"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.path"
msgstr "Ruta (P)"
msgstr "Ruta (%s)"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.rect"
msgstr "Rectángulo (R)"
msgstr "Rectángulo (%s)"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.text"
msgstr "Texto (T)"
msgstr "Texto (%s)"
#: src/app/main/ui/workspace/sidebar/history.cljs
msgid "workspace.undo.empty"

View file

@ -2036,15 +2036,15 @@ msgstr "Courbe (%s)"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.ellipse"
msgstr "Ellipse (E)"
msgstr "Ellipse (%s)"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.frame"
msgstr "Plan de travail (A)"
msgstr "Plan de travail (%s)"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.image"
msgstr "Image (K)"
msgstr "Image (%s)"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.move"
@ -2052,15 +2052,15 @@ msgstr "Déplacer"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.path"
msgstr "Chemin (P)"
msgstr "Chemin (%s)"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.rect"
msgstr "Rectangle (R)"
msgstr "Rectangle (%s)"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.text"
msgstr "Texte (T)"
msgstr "Texte (%s)"
#: src/app/main/ui/workspace/sidebar/history.cljs
msgid "workspace.undo.empty"
@ -2190,4 +2190,4 @@ msgid "workspace.updates.update"
msgstr "Actualiser"
msgid "workspace.viewport.click-to-close-path"
msgstr "Cliquez pour fermer le chemin"
msgstr "Cliquez pour fermer le chemin"

View file

@ -1146,11 +1146,11 @@ msgstr ""
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.frame"
msgstr "Рабочая область (A)"
msgstr "Рабочая область (%s)"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.image"
msgstr "Изображение (K)"
msgstr "Изображение (%s)"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.move"
@ -1158,15 +1158,15 @@ msgstr "Вытеснить"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.path"
msgstr "Линия (P)"
msgstr "Линия (%s)"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.rect"
msgstr "Прямоугольник (R)"
msgstr "Прямоугольник (%s)"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.text"
msgstr "Текст (T)"
msgstr "Текст (%s)"
#: src/app/main/data/workspace/libraries.cljs
msgid "workspace.updates.dismiss"
@ -1181,4 +1181,4 @@ msgid "workspace.updates.update"
msgstr ""
msgid "workspace.viewport.click-to-close-path"
msgstr "Кликни чтобы закончить фигуру"
msgstr "Кликни чтобы закончить фигуру"

View file

@ -2066,15 +2066,15 @@ msgstr "曲线(%s"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.ellipse"
msgstr "椭圆(E"
msgstr "椭圆(%s"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.frame"
msgstr "画板(A"
msgstr "画板(%s"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.image"
msgstr "图片(K"
msgstr "图片(%s"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.move"
@ -2082,15 +2082,15 @@ msgstr "移动"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.path"
msgstr "路径(P"
msgstr "路径(%s"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.rect"
msgstr "矩形(R"
msgstr "矩形(%s"
#: src/app/main/ui/workspace/left_toolbar.cljs
msgid "workspace.toolbar.text"
msgstr "文本(T"
msgstr "文本(%s"
#: src/app/main/ui/workspace/sidebar/history.cljs
msgid "workspace.undo.empty"
@ -2220,4 +2220,4 @@ msgid "workspace.updates.update"
msgstr "更新"
msgid "workspace.viewport.click-to-close-path"
msgstr "单击以闭合路径"
msgstr "单击以闭合路径"