Make Search Escape restore input then previous tab
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
# Search Escape navigation
|
||||
|
||||
Unmodified Escape in Search first returns focus to the native search field when
|
||||
focus is elsewhere. With the field already focused, it returns to the actual
|
||||
previous destination through the shell's existing tab history. The query survives
|
||||
both actions and subsequent visits. Search opened without a previous destination
|
||||
stays open. Hidden Search, modified Escape and key repeats do not consume history.
|
||||
An open dialog or popup retains priority over the Search shortcut.
|
||||
|
||||
The focus registry reports the real editable field's focus while retaining the
|
||||
existing native input handoff used by Cupertino web. No chat workspace behavior
|
||||
or deployment is included here.
|
||||
|
||||
Verification:
|
||||
|
||||
- Shell/Search integration: 197 passed, peak 1816 MB;
|
||||
`/private/tmp/search-escape-integration.log`.
|
||||
- Final focused suite: 9 passed, peak 916 MB; includes Chat/Runs/Pipelines history,
|
||||
Cupertino focus, retained query, dialog/menu dismissal, modifiers, hidden Search,
|
||||
missing history and held-key repeat.
|
||||
`/private/tmp/search-escape-final-focused.log`.
|
||||
- Bounded analysis of all changed Dart files: clean. Fixture web build passed.
|
||||
- Real Chrome fixture interaction passed for Material/light and Cupertino/dark.
|
||||
Assertions checked the native active input value after typing, Tab and Escape,
|
||||
second-Escape navigation to Chat, retained query, dialog dismissal, and returning
|
||||
to Runs rather than Chat. All four PNGs were inspected.
|
||||
Reports and captures are in
|
||||
`/private/tmp/search-escape-browser-material/` and
|
||||
`/private/tmp/search-escape-browser-cupertino/`, each containing `report.json`,
|
||||
`01-field-refocused.png` and `02-previous-runs.png`.
|
||||
|
||||
No physical-device verification or deployment was performed.
|
||||
Reference in New Issue
Block a user