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 })