🐛 Fix problem with shortcuts in text editor

This commit is contained in:
alonso.torres 2024-10-11 13:27:26 +02:00
parent 97ae295cb9
commit f8fad95fef
2 changed files with 6 additions and 1 deletions

View file

@ -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];