mirror of
https://github.com/penpot/penpot.git
synced 2025-05-30 09:36:14 +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
|
@ -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