ListBox.EnableKeyboard

Syntax

EnableKeyboard: Boolean;

Description

The EnableKeyboard property determines whether list elements can be selected using 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 selecting the element becomes possible only on clicking the mouse.

See also:

ListBox