Double Click event for filemanager

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.