How do I get the selectedFiles when we ctrl+click to deselect an item

when I ctrl+click on a selected item, and then call $$(‘files’).getSelectedFile(), the returned selected items are incorrect. getSelectedFile should not return the deselected item.

Here’s a snippet to try it out
https://snippet.webix.com/tl0iw4fp

Is there a way to properly get the selected items?

Thanks

your snippet is working fine for me.

Hey @Miguel, intregal is right, could you please provide a snippet where the described issue can be seen? The snippet you’ve linked is working just fine for me as well, and the described issue is not being repeated.

Hi, the issue can be seen there, plz open the console and deselect an item with ctrl+click. No event is triggered, therefore the selection does not change. However if you click to select another item, then you’ll see that the selection is properly updated.

Perhaps, I need to post my question differently… How can I capture a deselect action, when I ctrl+click on a selected item?

thanks

Yes, you are right, it works properly on the snippet, on my code it doesn’t… I will have to figure out what is happening there

https://snippet.webix.com/ohncbol3

Thanks