Enables or disables default navigation keys.

Set_Property(OLECtrlEntID, "OLE.NavKeyEnabled[key]", Boolean)

[True | False]

Default: True

IndexDescription
keyName of a navigation key (See Remarks)

The NavKeyEnabled property enables or disables keys used to navigate from one cell to another. To use this property, set the index to one of the key names below. Set this property to 1 to activate a navigation key or 0 to deactivate it. By default, all navigation keys are active.

Here are the navigation keys that may be enabled or disabled:

NameAction
TabMoves to the next cell in the current row or the first cell in the next row
EnterMoves to the next cell in the current row or the first cell in the next row
HomeMoves to the first cell in the current row
EndMoves to the last cell in the current row
PgUpMoves to the same cell in the first row of the previous set of visible rows
PgDownMoves to the same cell in the first row of the next set of visible rows
LeftMoves to the previous cell in the current row
RightMoves to the next cell in the current row
UpMoves to the same cell in the previous row
DownMoves to the same cell in the next row
Shift_TabMoves to the previous cell in the current row or the last cell in the previous row
Ctrl_HomeMoves to the first cell in the first row of the table
Ctrl_EndMoves to the last cell in the last row of the table
Ctrl_PgUpMoves to the same cell in the first row of the table
Ctrl_PgDownMoves to the same cell in the last row of the table
Ctrl_LeftMoves to the first visible cell in the current row
Ctrl_RightMoves to the last visible cell in the current row
Ctrl_UpMoves to the same cell in the first visible row
Ctrl_DownMoves to the same cell in the last visible row
Ctrl_EnterMoves out of the table on onto the next control (or previous control if SHIFT is pressed)
// Disable the ENTER key 
Set_Property(@Window:".OLE_EDITTABLE", "OLE.NavKeyEnabled[Enter]", 0) 

// Enable the ability to tab out using CTRL+ENTER 
Set_Property(@Window:".OLE_EDITTABLE", "OLE.NavKeyEnabled[Ctrl_Enter]", 1)
  • No labels