mirror of
https://github.com/penpot/penpot.git
synced 2025-06-08 15:41:38 +02:00
🐛 Fix problem with shortcuts in text editor
This commit is contained in:
parent
97ae295cb9
commit
f8fad95fef
2 changed files with 6 additions and 1 deletions
|
@ -40,6 +40,7 @@
|
|||
- 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 "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
|
||||
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue