---
title: Item add modal missing auto-focus and Esc handling
status: resolved
area: ui
phase_origin: 11-uat
created: 2026-03-20
---

# Item Add Modal: Missing Auto-Focus and Esc Handling

## Issues

### 1. No auto-focus on search box
When the item add modal (Shopify Product Lookup) opens, the search box does not receive focus automatically. User must click into it.

### 2. Esc closes filters/views instead of modal
Pressing Esc while the item add modal is open does not close the modal. Instead, it changes filters and navigates to home screen (the global FocusScope Esc handler fires instead of the modal intercepting it).

## Expected Behavior
- Modal should auto-focus the search TextInput on open
- Esc should close the modal first; only after modal is closed should Esc reach the global handler

## Related
- Phase 9: Item & Note CRUD Wiring (LookupModal uses full-overlay Rectangle backdrop)
- Phase 6: Three-layer Esc handling
