# Lock nodes in place

Keep a node’s position and size from changing during canvas edits.

Locking protects a node’s position and size while you work around it. You can still select, focus, type into, and connect a locked node.

## Lock or unlock a node

1. Select one or more nodes.
2. With the canvas focused, press <kbd>Ctrl</kbd> + <kbd>L</kbd> on Windows or Linux, or <kbd>Cmd</kbd> + <kbd>L</kbd> on macOS. You can also choose **Lock** in the command palette or **Lock position** from a node’s context menu.
3. To unlock, use the same shortcut or choose **Unlock** in the palette or **Unlock position** from the node menu.

> **Tip:** If a selection contains both locked and unlocked nodes, the toggle locks all of them. If every selected node is locked, the toggle unlocks them all.

> **Limit:** A focused terminal uses <kbd>Ctrl</kbd> + <kbd>L</kbd> to clear its screen. Locked nodes cannot be moved, resized, or deleted; a bulk delete is refused if any selected node is locked.

Source: https://trymao.dev/docs/canvas-basics/canvas-lock-nodes
