diff --git a/src/editor/core/event/handlers/keydown.ts b/src/editor/core/event/handlers/keydown.ts index a5c43ff..5e6ca6f 100644 --- a/src/editor/core/event/handlers/keydown.ts +++ b/src/editor/core/event/handlers/keydown.ts @@ -120,7 +120,7 @@ export function keydown(evt: KeyboardEvent, host: CanvasEvent) { } } else if (evt.key === KeyMap.Right) { if (isReadonly) return - if (index < positionList.length - 1) { + if (index < positionList.length) { const curIndex = endIndex + 1 // shift则缩放选区 let anchorStartIndex = curIndex