From bb1ee5910e7caa0b54ea721038571210950eb59c Mon Sep 17 00:00:00 2001 From: Hufe921 Date: Fri, 31 May 2024 22:12:05 +0800 Subject: [PATCH] fix: error using tab key at control postfix --- src/editor/core/event/handlers/keydown/tab.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/core/event/handlers/keydown/tab.ts b/src/editor/core/event/handlers/keydown/tab.ts index 450331d..e863910 100644 --- a/src/editor/core/event/handlers/keydown/tab.ts +++ b/src/editor/core/event/handlers/keydown/tab.ts @@ -12,7 +12,7 @@ export function tab(evt: KeyboardEvent, host: CanvasEvent) { // 在控件上下文时,tab键控制控件之间移动 const control = draw.getControl() const activeControl = control.getActiveControl() - if (activeControl) { + if (activeControl && control.getIsRangeWithinControl()) { control.initNextControl({ direction: evt.shiftKey ? MoveDirection.UP : MoveDirection.DOWN })