Delphi Firemonkey TListView.selected is always nil in onItemsChange

  

Firemonkey App, Windows and MacOS target.

I need to know what item is selected when a user scroll with the cursor keys or click with the mouse a listview item.

I can react to the mouse click via the onItemClick event, thats fine, also the onItemsChange event is fired when I move the selection with the cursor keys, but the selected property of the listview stays always at nil within that event.

Is this a bug or is there something I miss?

How do I know what item is selected when user use the cursor keys within the control?

Comments are closed.