Sign in Join
FPDoc Onlineexperiment

TValueListEditor.KeyPress procedure

Member of TValueListEditorprotectedIn unit ValEdit

Handles special key presses for the control.

Declaration

pascal
procedure KeyPress(var Key: char); override

Arguments

Key

Key value examined in the method.

Description

KeyPress is an overridden method in TValueListEditor which handles key press events for special characters used in the control.

It calls the inherited method on entry to handle the character value in Key. If not handled in the ancestor class, it prevents the name/value separator used in Strings from being entered in the Name column for the control. If detected, Key is set to #0 and the focus is changed to the Value column and its editor is activated.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.