Lock selection
With the lock selection tool you can lock an area to prevent it from accidentally being edited or deleted. To lock a selection select the area you want to lock with the Selection tool, then click the lock selection button in the Toolbar or by using Keyboard shortcuts (L).
When a selection is locked, all the locked cells will be displayed with a red outline by default. You can change how the locked cells look in the Editor settings.
When a cell is locked, it won’t allow you to modify the sprite or tile with the Brush or Eraser tools, you won’t be able to move them with the Move tool or delete them when pressing Delete.
Unlock selection
To unlock a selection just simply select them with the Selection tool again and click the Unlock selection button in the Toolbar, which is located right next to the Lock selection button. You can also use Keyboard shortcuts (U).