Skip to content

Annotation: Return saves after mouse tag picks - #266

Merged
neuromechanist merged 1 commit into
feature/issue-256-epic-viewer-workbenchfrom
fix/annotation-enter-focus
Sep 1, 2026
Merged

Annotation: Return saves after mouse tag picks#266
neuromechanist merged 1 commit into
feature/issue-256-epic-viewer-workbenchfrom
fix/annotation-enter-focus

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

Live-QA follow-up to #263 (part of epic #256). A mouse click on a quick-pick chip or a search result left focus on that button, where Enter re-activates the button rather than saving (the ENTER_OWNING_TAGS deferral exists for keyboard users). The natural mouse flow drag -> click tag -> Return therefore never saved, as Yahya found testing live. Mouse activations (event.detail > 0) now return focus to the search input so Return means save; keyboard activations (detail 0) are untouched, keeping the vocabulary keyboard-reachable.

Gates: typecheck 0 errors, lint clean, 1347 tests, verified by Yahya on the live dev server.

A mouse click on a quick-pick chip or search result left focus on that
button, where Enter re-activates the button (ENTER_OWNING_TAGS defers to
it for keyboard users) instead of saving - so the natural mouse flow
drag -> click tag -> Return never saved. Mouse activations (detail > 0)
now hand focus back to the search input; keyboard activations (detail 0)
keep focus on the chip.

Tested: typecheck, lint, 1347 vitest; reported by Yahya in live QA.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying nemar-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: a7b5b64
Status: ✅  Deploy successful!
Preview URL: https://6e50dd05.nemar-website.pages.dev
Branch Preview URL: https://fix-annotation-enter-focus.nemar-website.pages.dev

View logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant