Virtual listview, MultiSelect: problem: only one item in the list: after click on empty space this single item keeps to stay selected

  • Lazarus/FPC Version: <Lazarus 2.2.0RC1 r65419 FPC 3.2.2 x86_64-win64-win32/win64_> (Copy from Menu -> Help -> About Lazarus -> Button "Copy version information to clipboard")
  • Operating System: <Windows 10 x64>
  • CPU / Bitness: <64> (64 or 32 Bit?)

What happens

< Lazarus 2.2 RC, Windows x84: Virtual listview, MultiSelect: Scenario that the list contains only one item. Select this single item, then click on empty space ("nowhere""): the item will keep "item.selected" is true See the attached test project.

What did you expect

<When clicking to nowwhere (empty area), the single item in the listview does not stay to be selected>

Steps to reproduce

<Use the test project attached Select this single item, then click on empty space ("nowhere""). Look if a message box does appear telling you that the item will keep "item.selected" is true listview_virtualMode_multiselect_selected_behaviour_singleItem.zip

// Please choose and add the following labels as appropriate: // - "Version::.._" // - "Category::> // - "WS:" if and only if you tested with different Widgetset, and if only one/some is/are affected // - "Severity::Crash" if the issue causes a crash. Otherwise any severity added, will be removed.