> ## Documentation Index
> Fetch the complete documentation index at: https://docs.taho.is/llms.txt
> Use this file to discover all available pages before exploring further.

# Keyboard Shortcuts

> Quick reference for TUI Pantry keyboard and mouse controls.

## Keyboard

### Navigation

| Key                   | Sidebar                       | Preview                 | Fullscreen              |
| --------------------- | ----------------------------- | ----------------------- | ----------------------- |
| `j` / `k` / `↑` / `↓` | Navigate entries              | Forwarded to ingredient | Forwarded to ingredient |
| `h` / `l` / `←` / `→` | Collapse / expand group       |                         |                         |
| `Enter`               | Toggle group or focus preview |                         |                         |

### Tabs

| Key         | Action                |
| ----------- | --------------------- |
| `1` to `4`  | Jump to tab by number |
| `Tab`       | Next tab              |
| `Shift+Tab` | Previous tab          |

### Modes

| Key   | Action                                        |
| ----- | --------------------------------------------- |
| `f`   | Toggle fullscreen for the selected ingredient |
| `Esc` | Return to sidebar from preview or fullscreen  |
| `q`   | Quit the Pantry                               |

### Display

| Key | Action                                                          |
| --- | --------------------------------------------------------------- |
| `c` | [Cycle color depth](/tui-pantry/the-pantry#color-depth-cycling) |
| `t` | Toggle theme: dark / light                                      |

## Mouse

| Action                      | Behavior                                                  |
| --------------------------- | --------------------------------------------------------- |
| Click sidebar entry         | Navigate to that entry                                    |
| Click tab label             | Switch to that tab                                        |
| Scroll wheel in sidebar     | Navigate up / down                                        |
| Click / interact in preview | Forwarded to interactive ingredients via `handle_mouse()` |
