# Keyboard Shortcuts

Quick reference for all keyboard shortcuts in the Eisenhower Matrix.

## Task Management

| Shortcut | Action |
|----------|--------|
| **Ctrl/Cmd + Enter** | Add task to selected quadrant |
| **Ctrl + Shift + 1** | Add task directly to "Do First" |
| **Ctrl + Shift + 2** | Add task directly to "Schedule" |
| **Ctrl + Shift + 3** | Add task directly to "Delegate" |
| **Ctrl + Shift + 4** | Add task directly to "Eliminate" |
| **Ctrl + Shift + S** | Add task directly to "Schedule" (alternative for Mac) |

## Editing Tasks

| Shortcut | Action |
|----------|--------|
| **Click title** | Edit task (inline) |
| **E** | Edit selected task |
| **Enter** | Save changes (while editing) |
| **Esc** | Save and exit edit mode |

## Navigation & Selection

| Shortcut | Action |
|----------|--------|
| **Click card** | Select task (blue highlight) |
| **Esc** | Deselect task |

## Moving Tasks

| Shortcut | Action |
|----------|--------|
| **1** | Move selected task to "Do First" |
| **2** | Move selected task to "Schedule" |
| **3** | Move selected task to "Delegate" |
| **4** | Move selected task to "Eliminate" |
| **↑** | Move task up in quadrant |
| **↓** | Move task down in quadrant |
| **Right-click** | Open context menu for quick moves |
| **Ctrl/Cmd + Click** | Open context menu |

## Deletion & Recovery

| Shortcut | Action |
|----------|--------|
| **Delete** or **Backspace** | Delete selected task |
| **Ctrl/Cmd + Z** | Undo last action |
| **Ctrl/Cmd + R** | Redo last undone action |

## Search & Filter

| Shortcut | Action |
|----------|--------|
| **Ctrl/Cmd + F** | Focus search box and select all text |
| (type) | Filter tasks by title or due date |

## Dialogs

| Shortcut | Action |
|----------|--------|
| **Esc** | Close dialogs (or exit edit/deselect) |

---

## Notes

- **Esc is context-aware:** It prioritizes closing dialogs first, then exiting edit mode, then deselecting
- **Redo only works immediately after undo:** Any new action clears the redo history
- **Quick-add uses Ctrl only (not Cmd):** On Mac, this avoids conflicts with system screenshot shortcuts (Cmd+Shift+2/3/4)
- **Ctrl+Shift+2 on Mac:** Some Mac systems reserve this key. Use **Ctrl+Shift+S** to add to "Schedule" instead
- **Overdue tasks float automatically:** They appear at the top of their quadrant regardless of manual ordering
- **Theme toggle:** Click ☾/☀ in toolbar to switch between dark and light modes (preference saved)
- **All data is local:** Changes save instantly to your browser's localStorage

---

## Quick Tips

**Power user workflow:**
1. Type task, press **Ctrl+Shift+1** to add to Do First
2. Click another task, press **1** to move it
3. Edit title by clicking it, save with Enter or Esc
4. Set due date by clicking the date input (stays visible while editing)
5. Undo mistakes with **Ctrl/Cmd+Z**

**Mobile users:**
- Tap card to select (blue highlight)
- Drag cards between quadrants
- Long-press for context menu (move options)
- Use on-screen keyboard for most shortcuts
