Double Click event for filemanager

I want to change the double click event for the file manager when double clicking on files. Currently the default behavior for double click opens a file. Instead I want to just save the file name that’s double clicked then close the filemanager. Is there a suggestion on how to do this?

You need to redefine Activate of fileManager.views.list and fileManager.views.cards, e.g. Code Snippet

Could you please elaborate on closing the filemanager? Do you want to destroy it or just hide? Do you use it as a file dialogue of some sort? Anyway, whatever that might be, you can close it the same way. Maybe throw an event (an app-wide event of FM), add a listener for it and then close FM in it.