# 15.13 Place focus on purpose

> Chapter 15, Accessibility and input. Section: Names, focus, and keyboard. Guide: https://www.designguide.dev/md/15-accessibility-and-input.md#place-focus-on-purpose

Hard

**Rule:** Move focus on purpose when a layer opens or closes and when an item is deleted or moved.

**Why:** When focus vanishes, keyboard and screen-reader users must start again from the top of the page.

| Event | Focus goes to |
| --- | --- |
| A dialog opens | The first control, or the dialog title |
| A dialog or sheet closes | The control that opened it |
| A row is deleted | The next row, or the last row |
| An item moves to another list | The item in its new place |
| A submit fails | The first field with an error |
