# Managing Mask History

The mask history tracks changes made through:

* Manual drawing tools from the **Inpaint Toolbar** (Brush, Rectangle, Polygonal Lasso).
* Mask manipulation actions from the Toolbar (Clear, Invert, Inflate/Deflate, Border Mask).
* Applying an AI-generated mask layer to the main mask via the "Apply Layer to Mask" action.

***

### Important Notes:

* **Focus:** The Undo/Redo shortcuts for mask history are generally active when the **Inpaint Canvas** or its associated tools have focus.
* **Separate from Global Undo:** Some UI parts might have their own Undo/Redo system for other actions. The `Ctrl+Z`/`Ctrl+Y` for masks specifically targets the **masking canvas operations**. _(This page focuses only on mask history.)_
* **Reset**: Since the mask content area depends on the generation area, changing the generation area will often flush the mask history, even though the current mask will look unchanged.

Using Undo and Redo for your mask is a quick and essential way to correct errors and experiment without fear of making irreversible changes to your selections.
