mirror of
https://github.com/penpot/penpot.git
synced 2025-01-25 07:58:49 -05:00
✨ Changes image shortcut to K
This commit is contained in:
parent
2aaa82a5c4
commit
4d4e7c75da
3 changed files with 13 additions and 8 deletions
|
@ -3689,10 +3689,10 @@
|
|||
"workspace.toolbar.image" : {
|
||||
"used-in" : [ "src/app/main/ui/workspace/left_toolbar.cljs:79" ],
|
||||
"translations" : {
|
||||
"en" : "Image (I)",
|
||||
"fr" : "Image (I)",
|
||||
"ru" : "Изображение (I)",
|
||||
"es" : "Imagen (I)"
|
||||
"en" : "Image (K)",
|
||||
"fr" : "Image (K)",
|
||||
"ru" : "Изображение (K)",
|
||||
"es" : "Imagen (K)"
|
||||
}
|
||||
},
|
||||
"workspace.toolbar.libraries" : {
|
||||
|
|
|
@ -44,6 +44,7 @@
|
|||
[app.util.transit :as t]
|
||||
[app.util.webapi :as wapi]
|
||||
[app.util.i18n :refer [tr] :as i18n]
|
||||
[app.util.dom :as dom]
|
||||
[beicon.core :as rx]
|
||||
[cljs.spec.alpha :as s]
|
||||
[clojure.set :as set]
|
||||
|
@ -1674,6 +1675,9 @@
|
|||
"t" #(st/emit! dwtxt/start-edit-if-selected
|
||||
(dwd/select-for-drawing :text))
|
||||
"p" #(st/emit! (dwd/select-for-drawing :path))
|
||||
"k" (fn [event]
|
||||
(let [image-upload (dom/get-element "image-upload")]
|
||||
(dom/click image-upload)))
|
||||
(c-mod "c") #(st/emit! copy-selected)
|
||||
(c-mod "x") #(st/emit! copy-selected delete-selected)
|
||||
"escape" #(st/emit! (esc-pressed))
|
||||
|
|
|
@ -80,10 +80,11 @@
|
|||
:on-click on-image}
|
||||
[:*
|
||||
i/image
|
||||
[:& file-uploader {:accept cm/str-media-types
|
||||
:multi true
|
||||
:input-ref file-input
|
||||
:on-selected on-files-selected}]]]
|
||||
[:& file-uploader {:input-id "image-upload"
|
||||
:accept cm/str-media-types
|
||||
:multi true
|
||||
:input-ref file-input
|
||||
:on-selected on-files-selected}]]]
|
||||
[:li.tooltip.tooltip-right
|
||||
{:alt (t locale "workspace.toolbar.curve")
|
||||
:class (when (= selected-drawtool :curve) "selected")
|
||||
|
|
Loading…
Add table
Reference in a new issue