mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 08:50:57 -05:00
Merge pull request #2889 from penpot/palba-fix-commad-z-in-mac
🐛 Fix typing CMD+Z on MacOS turns the cursor into a Zoom cursor
This commit is contained in:
commit
6be83fc6d6
2 changed files with 3 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
### :bug: Bugs fixed
|
### :bug: Bugs fixed
|
||||||
- Fix components groups items show the component name in list mode [Taiga #4770](https://tree.taiga.io/project/penpot/issue/4770)
|
- Fix components groups items show the component name in list mode [Taiga #4770](https://tree.taiga.io/project/penpot/issue/4770)
|
||||||
|
- Fix typing CMD+Z on MacOS turns the cursor into a Zoom cursor [Taiga #4778](https://tree.taiga.io/project/penpot/issue/4778)
|
||||||
|
|
||||||
|
|
||||||
## 1.17.0
|
## 1.17.0
|
||||||
|
|
|
@ -109,7 +109,8 @@
|
||||||
|
|
||||||
(defn setup-keyboard [alt? mod? space? z?]
|
(defn setup-keyboard [alt? mod? space? z?]
|
||||||
(hooks/use-stream ms/keyboard-alt #(reset! alt? %))
|
(hooks/use-stream ms/keyboard-alt #(reset! alt? %))
|
||||||
(hooks/use-stream ms/keyboard-mod #(reset! mod? %))
|
(hooks/use-stream ms/keyboard-mod #((reset! mod? %)
|
||||||
|
(when-not % (reset! z? false)))) ;; In mac after command+z there is no event for the release of the z key
|
||||||
(hooks/use-stream ms/keyboard-space #(reset! space? %))
|
(hooks/use-stream ms/keyboard-space #(reset! space? %))
|
||||||
(hooks/use-stream ms/keyboard-z #(reset! z? %)))
|
(hooks/use-stream ms/keyboard-z #(reset! z? %)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue