Skip to content

fix(annotations): text tool click creates a text box again (v0.6.2) - #15

Merged
imnakul merged 2 commits into
masterfrom
fix/text-tool-first-click
Nov 26, 2026
Merged

imnakul merged 2 commits into
masterfrom
fix/text-tool-first-click

Conversation

@imnakul

@imnakul imnakul commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • Clicking with the Text tool on the capture screen created no text box.
  • Cause: the press created the editor, which autofocused, and then the browser's default press action moved focus to the focusable canvas. The empty editor blurred and was discarded at once.
  • Fix: prevent the press default when it creates a text box, as note pins already do.
  • Bumps the version to 0.6.2.

Tests

  • New regression test simulates the browser focus move. It fails without the fix and passes with it.
  • typecheck, lint, desktop vitest (607) and extension vitest (72) pass.
  • Manual: not yet run in a built app. Check that one click opens a box showing "Type something", Enter saves the text, and clicking away saves without opening a second box.

🤖 Generated with Claude Code

imnakul and others added 2 commits November 26, 2026 10:59
The press that created the text editor kept its default action, so the
browser moved focus to the focusable canvas right after the editor
autofocused. The empty editor blurred and was discarded at once. Prevent the
press default, as note pins already do, and add a regression test that
simulates the browser focus move.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
snaphub Ready Ready Preview Nov 26, 2026 6:40am UTC

@imnakul
imnakul merged commit 34adc4a into master Nov 26, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — 574499b3 Deployed Nov 26, 2026 by vercel[bot]
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