diff --git a/apps/ai-game-creator-shell/src/view/ui-editor/index.tsx b/apps/ai-game-creator-shell/src/view/ui-editor/index.tsx index 26cd2ba1f..da336c2af 100644 --- a/apps/ai-game-creator-shell/src/view/ui-editor/index.tsx +++ b/apps/ai-game-creator-shell/src/view/ui-editor/index.tsx @@ -87,9 +87,7 @@ export default function UiEditorPage({ const element = target instanceof HTMLElement ? target : null; return Boolean( element?.isContentEditable || - element?.closest( - 'input, textarea, select, button, a, [contenteditable="true"], [role="button"]', - ), + element?.closest('input, textarea, select, [contenteditable="true"]'), ); }; const onKeyDown = (event: KeyboardEvent) => {