Keyboard
| Key | Action |
|---|---|
| Esc | Close the modal |
| Click the dark area around the file | Close the modal (not after a drag, or while text is selected) |
| ← → | Previous and next file in a gallery |
| Tab | Cycles inside the modal; focus is trapped, and restored on close |
| Ctrl / ⌘ + scroll | Zoom images and PDFs |
Focus is moved into the modal when it opens and returned to the element that opened it when it closes, so keyboard and screen-reader users are never dropped at the top of the document.