mirror of
https://github.com/penpot/penpot.git
synced 2025-06-09 20:41:37 +02:00
🐛 Fix group and upgroup events naming.
This commit is contained in:
parent
45476eff0b
commit
2d4e76619f
3 changed files with 9 additions and 9 deletions
|
@ -1200,8 +1200,8 @@
|
||||||
:width (:width selection-rect)
|
:width (:width selection-rect)
|
||||||
:height (:height selection-rect)})
|
:height (:height selection-rect)})
|
||||||
|
|
||||||
(def create-group
|
(def group-selected
|
||||||
(ptk/reify ::create-group
|
(ptk/reify ::group-selected
|
||||||
ptk/WatchEvent
|
ptk/WatchEvent
|
||||||
(watch [_ state stream]
|
(watch [_ state stream]
|
||||||
(let [id (uuid/next)
|
(let [id (uuid/next)
|
||||||
|
@ -1237,8 +1237,8 @@
|
||||||
(rx/of (dwc/commit-changes rchanges uchanges {:commit-local? true})
|
(rx/of (dwc/commit-changes rchanges uchanges {:commit-local? true})
|
||||||
(dws/select-shapes #{id}))))))))
|
(dws/select-shapes #{id}))))))))
|
||||||
|
|
||||||
(def remove-group
|
(def ungroup-selected
|
||||||
(ptk/reify ::remove-group
|
(ptk/reify ::ungroup-selected
|
||||||
ptk/WatchEvent
|
ptk/WatchEvent
|
||||||
(watch [_ state stream]
|
(watch [_ state stream]
|
||||||
(let [page-id (:current-page-id state)
|
(let [page-id (:current-page-id state)
|
||||||
|
@ -1407,8 +1407,8 @@
|
||||||
"ctrl+shift+'" #(st/emit! (toggle-layout-flag :snap-grid))
|
"ctrl+shift+'" #(st/emit! (toggle-layout-flag :snap-grid))
|
||||||
"+" #(st/emit! (increase-zoom nil))
|
"+" #(st/emit! (increase-zoom nil))
|
||||||
"-" #(st/emit! (decrease-zoom nil))
|
"-" #(st/emit! (decrease-zoom nil))
|
||||||
"g" #(st/emit! create-group)
|
"g" #(st/emit! group-selected)
|
||||||
"shift+g" #(st/emit! remove-group)
|
"shift+g" #(st/emit! ungroup-selected)
|
||||||
"shift+0" #(st/emit! reset-zoom)
|
"shift+0" #(st/emit! reset-zoom)
|
||||||
"shift+1" #(st/emit! zoom-to-fit-all)
|
"shift+1" #(st/emit! zoom-to-fit-all)
|
||||||
"shift+2" #(st/emit! zoom-to-selected-shape)
|
"shift+2" #(st/emit! zoom-to-selected-shape)
|
||||||
|
|
|
@ -58,8 +58,8 @@
|
||||||
do-hide-shape #(st/emit! (dw/recursive-assign id :hidden true))
|
do-hide-shape #(st/emit! (dw/recursive-assign id :hidden true))
|
||||||
do-lock-shape #(st/emit! (dw/recursive-assign id :blocked true))
|
do-lock-shape #(st/emit! (dw/recursive-assign id :blocked true))
|
||||||
do-unlock-shape #(st/emit! (dw/recursive-assign id :blocked false))
|
do-unlock-shape #(st/emit! (dw/recursive-assign id :blocked false))
|
||||||
do-create-group #(st/emit! dw/create-group)
|
do-create-group #(st/emit! dw/group-selected)
|
||||||
do-remove-group #(st/emit! dw/remove-group)]
|
do-remove-group #(st/emit! dw/ungroup-selected)]
|
||||||
[:*
|
[:*
|
||||||
[:& menu-entry {:title "Copy"
|
[:& menu-entry {:title "Copy"
|
||||||
:shortcut "Ctrl + c"
|
:shortcut "Ctrl + c"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
(ns uxbox.util.debug
|
(ns uxbox.util.debug
|
||||||
"Debugging utils")
|
"Debugging utils")
|
||||||
|
|
||||||
(def debug-options #{:bounding-boxes :group :events :rotation-handler :resize-handler :selection-center #_:simple-selection })
|
(def debug-options #{:bounding-boxes :group :events :rotation-handler :resize-handler :selection-center #_:simple-selection})
|
||||||
|
|
||||||
(defonce ^:dynamic *debug* (atom #{}))
|
(defonce ^:dynamic *debug* (atom #{}))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue