# `GlyphsToolEvent willSelectTempTool:`

*Instance Method*

A callback to let the tool know that a temp tool will be selected (by pressing a modifier key). You can return NO to prevent that.

## Declaration

```swift
func willSelectTempTool(_ tempTool: Any) -> Bool
```

```objc
- (BOOL) willSelectTempTool:(id) tempTool;
```

```python
willSelectTempTool_(tempTool: object) -> bool
```

## Parameters

- `tempTool` — The temp tool that is about to become active

## Return Value

If you allow it or not

