diff --git a/CHANGES.md b/CHANGES.md index 140c4e6e1..6fe0ea01b 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,6 +4,7 @@ ### :bug: Bugs fixed +- Fix shortcut access in main menu [Taiga #3672](https://tree.taiga.io/project/penpot/issue/3672) - Fix modify colors in a row in selected colors [Taiga #3653](https://tree.taiga.io/project/penpot/issue/3653) - Fix crash when double click on viewer assets [Taiga #3625](https://tree.taiga.io/project/penpot/issue/3625) - Fix right click on typographies assets [Taiga #3638](https://tree.taiga.io/project/penpot/issue/3638) diff --git a/frontend/src/app/main/ui/workspace/header.cljs b/frontend/src/app/main/ui/workspace/header.cljs index a475c9c30..dfca387af 100644 --- a/frontend/src/app/main/ui/workspace/header.cljs +++ b/frontend/src/app/main/ui/workspace/header.cljs @@ -398,7 +398,9 @@ [:span (tr "labels.github-repo")]] [:li {:on-click #(dom/open-new-window "https://penpot.app/terms.html")} [:span (tr "auth.terms-of-service")]] - [:li.separator {:on-click #(st/emit! (rt/nav-new-window* {:rname :settings-feedback}))} + [:li.separator {:on-click #(st/emit! (when (contains? layout :collapse-left-sidebar) (dw/toggle-layout-flag :collapse-left-sidebar)) + (-> (dw/toggle-layout-flag :shortcuts) + (vary-meta assoc ::ev/origin "workspace-header")))} [:span (tr "label.shortcuts")] [:span.shortcut (sc/get-tooltip :show-shortcuts)]]