🐛 Fix typing CMD+Z on MacOS turns the cursor into a Zoom cursor

This commit is contained in:
Pablo Alba 2023-02-01 21:56:30 +01:00
parent 86712f977d
commit 1e9ece43d0
2 changed files with 3 additions and 1 deletions

View file

@ -109,7 +109,8 @@
(defn setup-keyboard [alt? mod? space? z?]
(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-z #(reset! z? %)))