Windows, virtual listview, "Item" in "Edited" becomes to be wrong when selection changed during editing
- Lazarus/FPC Version: <Lazarus 2.2.0 (rev lazarus_2_2_0) FPC 3.2.2 x86_64-win64-win32/win64__>
- Operating System: <Windows 10>
- CPU / Bitness: <64>
When - during an inplace editor is open - another item is clicked, then "Item" within the "OnEdited" event points to the wrong item. It does point to the newly selected item and not to the item that just has been edited.
What did you expect
That "Item" within the "Edited" event preserves the object that is just being to be edited.
Just as the regular listview does (test project is attached)
Steps to reproduce
Run the virtualmode test project attached, it's a step-by-step-instruction herein
Forum discussion in https://forum.lazarus.freepascal.org/index.php/topic,59024