🐛 Fix issue where Alt + arrow keys shortcut interferes with letter-spacing (#7071)

This commit is contained in:
andrés gonzález 2025-08-07 07:42:33 +02:00 committed by GitHub
parent a3557a81e4
commit 80f41c4a69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -22,6 +22,7 @@
- Fix missing package for the `penpot_exporter` Docker image [GitHub #7205](https://github.com/penpot/penpot/issues/7025)
- Fix issue where multiple dropdown menus could be opened simultaneously on the dashboard page [Taiga #11500](https://tree.taiga.io/project/penpot/issue/11500)
- Fix font size/variant not updated when editing a text [Taiga #11552](https://tree.taiga.io/project/penpot/issue/11552)
- Fix issue where Alt + arrow keys shortcut interferes with letter-spacing when moving text layers [Taiga #11552](https://tree.taiga.io/project/penpot/issue/11771)
## 2.9.0 (Unreleased)

View File

@ -205,11 +205,14 @@
(filter cfh/text-shape?)
(not-empty))
;; Check if we're actually editing text content (not just selecting text shapes)
editing-text? (some? (deref refs/workspace-editor))
props (if (> (count text-shapes) 1)
(blend-props text-shapes props)
props)]
(when (and can-edit? (not read-only?) text-shapes)
(when (and can-edit? (not read-only?) text-shapes editing-text?)
(st/emit! (dwu/start-undo-transaction undo-id))
(run! #(update-attrs % props) text-shapes)
(st/emit! (dwu/commit-undo-transaction undo-id)))))