mirror of
https://github.com/penpot/penpot.git
synced 2025-06-07 09:41:41 +02:00
✨ Navigate up in layer lierarchy with Shift+Enter shortcut
This commit is contained in:
parent
b0497f1352
commit
f69e141ac1
6 changed files with 34 additions and 1 deletions
|
@ -1,5 +1,11 @@
|
||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 1.19.2
|
||||||
|
|
||||||
|
### :sparkles: New features
|
||||||
|
|
||||||
|
- Navigate up in layer lierarchy with Shift+Enter shortcut [Taiga #5734](https://tree.taiga.io/project/penpot/us/5734)
|
||||||
|
|
||||||
## 1.19.1
|
## 1.19.1
|
||||||
|
|
||||||
### :bug: Bugs fixed
|
### :bug: Bugs fixed
|
||||||
|
|
|
@ -988,6 +988,23 @@
|
||||||
(rx/of (dwe/start-edition-mode id)
|
(rx/of (dwe/start-edition-mode id)
|
||||||
(dwdp/start-path-edit id)))))))))
|
(dwdp/start-path-edit id)))))))))
|
||||||
|
|
||||||
|
(defn select-parent-layer
|
||||||
|
[]
|
||||||
|
(ptk/reify ::select-parent-layer
|
||||||
|
ptk/WatchEvent
|
||||||
|
(watch [_ state _]
|
||||||
|
(let [selected (wsh/lookup-selected state)
|
||||||
|
objects (wsh/lookup-page-objects state)
|
||||||
|
shapes-to-select
|
||||||
|
(->> selected
|
||||||
|
(reduce
|
||||||
|
(fn [result shape-id]
|
||||||
|
(let [parent-id (dm/get-in objects [shape-id :parent-id])]
|
||||||
|
(if (and (some? parent-id) (not= parent-id uuid/zero))
|
||||||
|
(conj result parent-id)
|
||||||
|
(conj result shape-id))))
|
||||||
|
(d/ordered-set)))]
|
||||||
|
(rx/of (dws/select-shapes shapes-to-select))))))
|
||||||
|
|
||||||
;; --- Change Page Order (D&D Ordering)
|
;; --- Change Page Order (D&D Ordering)
|
||||||
|
|
||||||
|
|
|
@ -509,6 +509,10 @@
|
||||||
:subsections [:navigation-workspace]
|
:subsections [:navigation-workspace]
|
||||||
:fn #(st/emit! (dw/select-next-shape))}
|
:fn #(st/emit! (dw/select-next-shape))}
|
||||||
|
|
||||||
|
:select-parent-layer {:tooltip (ds/shift ds/enter)
|
||||||
|
:command "shift+enter"
|
||||||
|
:subsections [:navigation-workspace]
|
||||||
|
:fn #(emit-when-no-readonly (dw/select-parent-layer))}
|
||||||
;; SHAPE
|
;; SHAPE
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2704,6 +2704,9 @@ msgstr "Snap to pixel grid"
|
||||||
msgid "shortcuts.start-editing"
|
msgid "shortcuts.start-editing"
|
||||||
msgstr "Start editing"
|
msgstr "Start editing"
|
||||||
|
|
||||||
|
msgid "shortcuts.select-parent-layer"
|
||||||
|
msgstr "Select parent layer"
|
||||||
|
|
||||||
msgid "shortcuts.start-measure"
|
msgid "shortcuts.start-measure"
|
||||||
msgstr "Start measurement"
|
msgstr "Start measurement"
|
||||||
|
|
||||||
|
|
|
@ -2778,6 +2778,9 @@ msgstr "Activar alineación a rejilla de pixel"
|
||||||
msgid "shortcuts.start-editing"
|
msgid "shortcuts.start-editing"
|
||||||
msgstr "Comenzar edición"
|
msgstr "Comenzar edición"
|
||||||
|
|
||||||
|
msgid "shortcuts.select-parent-layer"
|
||||||
|
msgstr "Seleccionar capa padre"
|
||||||
|
|
||||||
msgid "shortcuts.start-measure"
|
msgid "shortcuts.start-measure"
|
||||||
msgstr "Comenzar medida"
|
msgstr "Comenzar medida"
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
1.19.1
|
1.19.2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue