Skip to content

OnEnterKey - cCJGrid

Called when the Enter key is pressed and is used to handle grid Enter key behavior

Type: Event

Syntax

Procedure OnEnterKey

Description

OnEnterKey is called when the Enter key is pressed. It is used to handle grid Enter key behavior. For various internal reasons, you should not use the On_Key KEnter keyproc to define Enter behavior, instead you should augment this event.

By default, this event will send ToggleEdit if pbEditOnKeyNavigation is false and will do nothing if this property is true. This means that, when used in its default state, pressing Enter will toggle in and out of edit mode.

If you are using the Enter key as a tab key (i.e., you have set the cApplication object's pbEnterKeyAsTabKey to True), this event will send the Next message.