For a plugin running inside Notepad++ i had irregularities with item inplace editors (treeview, listview)
who don't close 'automatically' in all expected cases. Eg. the do Not close when clicking onto another control inside the plugin's docking form, or onto some control outside.
I was able to find some workaround hack for the treeview using "OnMouseLeave": if the mouse goes outside the treeview whilst the node editor is open, then i close it explicitely using "aTreeView.Selected.EndEdit(True);".
Does Listview knows something like "EndEdit" - including 'cancel' parameter - which allows to call such closure from outside via code ?
As listview item editor i use something like this:
https://forum.lazarus.freepascal.org/index.php/topic,54348.msg403726.html#msg403726Remark: for the ListView, there is a "DoEndEdit(AItem: TListItem, const AValue: String)" procedure. But his behaves quirky in my tests
(it requires a new/changed value for the item's caption - otherwise the item editor keeps open -, that's not wanted).