diff --git a/CHANGES.md b/CHANGES.md index 8a2ba4bdd..1fcdc6259 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -16,6 +16,7 @@ ### :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 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 diff --git a/backend/src/app/loggers/audit.clj b/backend/src/app/loggers/audit.clj index 31b00a535..543473c84 100644 --- a/backend/src/app/loggers/audit.clj +++ b/backend/src/app/loggers/audit.clj @@ -247,7 +247,7 @@ from audit_log where archived_at is null order by created_at asc - limit 256 + limit 128 for update skip locked;") (defn archive-events diff --git a/backend/src/app/rpc/commands/files.clj b/backend/src/app/rpc/commands/files.clj index 9809e90a2..079df2321 100644 --- a/backend/src/app/rpc/commands/files.clj +++ b/backend/src/app/rpc/commands/files.clj @@ -997,7 +997,8 @@ :opt-un [::data])) (sv/defmethod ::upsert-file-object-thumbnail - {::doc/added "1.17"} + {::doc/added "1.17" + ::audit/skip true} [{:keys [::db/pool] :as cfg} {:keys [::rpc/profile-id file-id] :as params}] (db/with-atomic [conn pool] (check-edition-permissions! conn profile-id file-id) @@ -1027,7 +1028,8 @@ (sv/defmethod ::upsert-file-thumbnail "Creates or updates the file thumbnail. Mainly used for paint the grid thumbnails." - {::doc/added "1.17"} + {::doc/added "1.17" + ::audit/skip true} [{:keys [::db/pool] :as cfg} {:keys [::rpc/profile-id file-id] :as params}] (db/with-atomic [conn pool] (check-edition-permissions! conn profile-id file-id) diff --git a/frontend/src/app/main/ui/workspace/viewport/hooks.cljs b/frontend/src/app/main/ui/workspace/viewport/hooks.cljs index d4dd8c624..e7270e7b9 100644 --- a/frontend/src/app/main/ui/workspace/viewport/hooks.cljs +++ b/frontend/src/app/main/ui/workspace/viewport/hooks.cljs @@ -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? %)))