KEY attribute

The KEY attribute is used to define the labels of keys when the field is made current.

Syntax

KEY keyname = [%]"label"
  1. keyname is the name of a key ( like F10, "Control-z" ).
  2. label is the text to be displayed in the button corresponding to the key.

Usage

Use the KEY attribute to define a label for the accelerator key corresponding to an action when the focus is in the field.

The keyname must be specified in quotes if you want to use Control / Shift / Alt key modifiers.

See the KEYS section to define key labels for the whole form.

This feature is provided for backward compatibility, use action defaults to define action view texts.

Example

EDIT f001 = customer.city, KEY F10 = "City list";
EDIT f002 = customer.state, KEY "Control-z" = "Open Zoom";