https://bugs.winehq.org/show_bug.cgi?id=40444
--- Comment #2 from Martin Prikryl martin@winscp.net --- With more context:
ListView_SetItemState(Handle, Index, LVIS_FOCUSED, LVIS_FOCUSED); int Index2 = ListView_GetNextItem(Handle, -1, LVNI_FOCUSED); ListView_EnsureVisible(Handle, Index2, false);
(WinSCP uses VCL library, so the above is what the VCL does internally).
Note that I'm not confirming the bug, I'm just sharing details on the implementation.