mirror of
https://github.com/penpot/penpot.git
synced 2025-05-29 13:26:12 +02:00
✨ Minor improvements on shape selection.
This commit is contained in:
parent
78509f3a06
commit
f906945101
4 changed files with 27 additions and 20 deletions
|
@ -119,7 +119,7 @@
|
|||
[:& messages-widget]
|
||||
[:& header {:page page :layout layout :flags flags}]
|
||||
|
||||
(when (:colorpalette flags)
|
||||
(when (:colorpalette layout)
|
||||
[:& colorpalette])
|
||||
|
||||
(when (and layout page)
|
||||
|
|
|
@ -280,9 +280,8 @@
|
|||
(geom/transform shape modifier-mtx)
|
||||
shape)
|
||||
shape (dissoc shape ::initialized? :modifier-mtx)]
|
||||
;; Add & select the cred shape to the workspace
|
||||
(rx/of (dw/add-shape shape)
|
||||
dw/select-first-shape))))))))
|
||||
;; Add & select the created shape to the workspace
|
||||
(rx/of (dw/add-shape shape)))))))))
|
||||
|
||||
(def close-drawing-path
|
||||
(ptk/reify ::close-drawing-path
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
:ctrl+b #(st/emit! (dw/select-for-drawing :rect))
|
||||
:ctrl+e #(st/emit! (dw/select-for-drawing :circle))
|
||||
:ctrl+t #(st/emit! (dw/select-for-drawing :text))
|
||||
:esc #(st/emit! dw/deselect-all)
|
||||
:esc #(st/emit! :interrupt dw/deselect-all)
|
||||
:delete #(st/emit! dw/delete-selected)
|
||||
:ctrl+up #(st/emit! (dw/order-selected-shapes :up))
|
||||
:ctrl+down #(st/emit! (dw/order-selected-shapes :down))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue