<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[`Workspace`](Workspace) › [on('files-menu')](Workspace/on('files-menu').md)
## Workspace.on('files-menu') method
Triggered when the user opens the context menu with multiple files selected in the File Explorer.
1.4.10
**Signature:**
```typescript
on(name: 'files-menu', callback: (menu: Menu, files: TAbstractFile[], source: string, leaf?: WorkspaceLeaf) => any, ctx?: any): EventRef;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| <code>name</code> | <code>'files-menu'</code> | |
| <code>callback</code> | <code>(menu: </code>[`Menu`](Menu)<code>, files: </code>[`TAbstractFile`](TAbstractFile)<code>[], source: string, leaf?: </code>[`WorkspaceLeaf`](WorkspaceLeaf)<code>) => any</code> | |
| <code>ctx</code> | <code>any</code> | _(Optional)_ |
**Returns:**
[`EventRef`](EventRef)