SMART datagrid v.1 > Classes > EditOptions

Back  Forward

DataLudi.EditOptions.moveByArrowKeys  property

如果为true, 就会在单元格编辑器的编辑插入符号的位置为首位时,如果输入LEFT键,就会移动到上一单元格, 而在插入符号的位置为末位时,如果输入RIGHT键,就会移动到下一单元格。 

如果为false,就不会脱离编辑器。 

默认值为true.

Getter
function moveByArrowKeys(): Boolean
Setter
function setMoveByArrowKeys(value: Boolean)
Code -1
    grid.setOptions({
        edit: {
            moveByArrowKeys: false,
            useTabKey: false
        }
    });
Code -2
    grid.setEditOptions({
        moveByArrowKeys: false,
        useTabKey: false
    });
Code -3
    grid.editOptions().setMoveByArrowKeys(false);
See Also
enterToTab
useTabKey
enterToEdit
crossWhenExitFirst
crossWhenExitLast
moveInSelection
Examples
编辑键
单元格编辑