EnableKeyboard: Boolean;
The EnableKeyboard property determines whether list elements can be selected using Up and Down keys.
If the property is set to True, list elements can be selected with the keyboard. The True value is set by default.
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: