Compare commits
No commits in common. "5518537d537fd6affb52b102ba958d39924b9c2b" and "f4983bf36d4eb557df7cea2ad4c8596e7a6efe76" have entirely different histories.
5518537d53
...
f4983bf36d
@ -2352,11 +2352,6 @@ export class BabylonScene {
|
|||||||
const tag = (target.tagName || '').toLowerCase();
|
const tag = (target.tagName || '').toLowerCase();
|
||||||
if (tag === 'input' || tag === 'textarea' || tag === 'select') return true;
|
if (tag === 'input' || tag === 'textarea' || tag === 'select') return true;
|
||||||
if (target.isContentEditable) return true;
|
if (target.isContentEditable) return true;
|
||||||
// Monaco-редактор — у его внутренних элементов tagName бывает 'div',
|
|
||||||
// фокус живёт на скрытой textarea, но в зависимости от роутинга
|
|
||||||
// событий e.target может оказаться родительским div. Проверяем
|
|
||||||
// принадлежность дереву Monaco — там точно идёт набор текста.
|
|
||||||
if (typeof target.closest === 'function' && target.closest('.monaco-editor')) return true;
|
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user