# PDFViewer.deactivateTool()

```ts
deactivateTool(): Promise<void>
```

Put the active tool away and go back to the resting tool ([defaultTool](https://kernstra.com/docs/web-sdk/config/mode/defaulttool), Select by default); with the resting tool active, put down what is selected — an annotation picked up, the text Select selected. Edit Text with edits pending writes them first, as Done does, and the promise resolves once the tool is away; a refused write keeps the tool (`activeTool` tells). With nothing pending the tool is away before the call returns.

- Kind: method
- Since: 1.0.0

Returns `Promise<void>`

Throws:

- `INVALID_STATE` after `destroy()`.

```ts
await viewer.deactivateTool();
```

Part of [PDFViewer](https://kernstra.com/docs/web-sdk/api/pdfviewer) in the Kernstra Web SDK 1.0.0 API reference.

Web page: https://kernstra.com/docs/web-sdk/api/pdfviewer/deactivatetool
