ListBox.EnableKeyboard

Syntax

EnableKeyboard: Boolean;

Description

The EnableKeyboard property determines whether list elements can be selected using the UP and DOWN keys.

Comments

If the property is set to True, list elements can be selected with the keyboard. The True value is set by default.

Example

To execute the example, create the ListBox component (see Example of Creating the ListBox Component) named listbox. Use the EnableKeyboard property in order to disable element selecting with the keyboard:

listbox.setEnableKeyboard(false);

 

After executing the example the element can be selected only on mouse click.

See also:

ListBox