diff --git a/CHANGES.md b/CHANGES.md index 77d2c8c4e..7b50269b0 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -38,8 +38,9 @@ - Fix problem when translating multiple path points [Github #4459](https://github.com/penpot/penpot/issues/4459) - Fix problem on importing (and exporting) files with flows [Taiga #8914](https://tree.taiga.io/project/penpot/issue/8914) - Fix Internal Error page: "go to your penpot" wrong design [Taiga #8922](https://tree.taiga.io/project/penpot/issue/8922) -- Fix problem updating layout when toggle visibility in component copy[Github #5143](https://github.com/penpot/penpot/issues/5143) +- Fix problem updating layout when toggle visibility in component copy [Github #5143](https://github.com/penpot/penpot/issues/5143) - Fix "Done" button on toolbar on inspect mode should go to design mode [Taiga #8933](https://tree.taiga.io/project/penpot/issue/8933) +- Fix problem with shortcuts in text editor [Github #5078](https://github.com/penpot/penpot/issues/5078) ## 2.2.1 diff --git a/frontend/src/app/main/data/shortcuts_impl.js b/frontend/src/app/main/data/shortcuts_impl.js index e381cc150..0dcc27538 100644 --- a/frontend/src/app/main/data/shortcuts_impl.js +++ b/frontend/src/app/main/data/shortcuts_impl.js @@ -24,6 +24,10 @@ target.stopCallback = function (e, element, combo) { return false } + if ((' ' + element.className + ' ').indexOf(' mousetrap ') > -1) { + return false; + } + if ('composedPath' in e && typeof e.composedPath === 'function') { // For open shadow trees, update `element` so that the following check works. const initialEventTarget = e.composedPath()[0];