Compare commits

...

1 Commits

Author SHA1 Message Date
Vinícius Lourenço
74b5d8eb9b fix(keyboard-shortcut): monaco-editor should not trigger shortcut 2026-06-24 17:17:42 -03:00

View File

@@ -84,11 +84,12 @@ export function KeyboardHotkeysProvider({
}
const target = event.target as HTMLElement;
const isCodeMirrorEditor =
(target as HTMLElement).closest('.cm-editor') !== null;
const isCodeMirrorEditor = target.closest('.cm-editor') !== null;
const isMonacoEditor = target.closest('.monaco-editor') !== null;
if (
IGNORE_INPUTS.includes((target as HTMLElement).tagName.toLowerCase()) ||
isCodeMirrorEditor
IGNORE_INPUTS.includes(target.tagName.toLowerCase()) ||
isCodeMirrorEditor ||
isMonacoEditor
) {
return;
}