From 95f5904b92796df5aaf9da413fb9ec6945505ef8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Thu, 3 Sep 2026 11:54:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=BE=E5=AE=BD=E7=BC=96=E8=BE=91=E5=99=A8?= =?UTF-8?q?=E5=BF=AB=E6=8D=B7=E9=94=AE=E7=84=A6=E7=82=B9=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 仅将文本输入控件视为可编辑目标\n保持工具栏按钮聚焦时仍可使用撤销重做快捷键 --- apps/ai-game-creator-shell/src/view/ui-editor/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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) => {