# `GlyphsToolEvent addMenuItemsForEvent:toMenu:`

*Instance Method*

Callback to allow to add something to the context menu

## Declaration

```swift
optional func addMenuItems(for theEvent: NSEvent, to theMenu: NSMenu)
```

```objc
- (void) addMenuItemsForEvent:(NSEvent *) theEvent toMenu:(NSMenu *) theMenu;
```

```python
addMenuItemsForEvent_toMenu_(theEvent: NSEvent, theMenu: NSMenu)
```

## Parameters

- `theEvent` — The current event
- `theMenu` — The context menu to add to

