fix: error using tab key at control postfix

pr675
Hufe921 2 years ago
parent 523183f175
commit bb1ee5910e

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

Loading…
Cancel
Save