Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG-PUBLIC.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

User-facing changes only, grouped by date under Added / Improved / Fixed.

## 0.6.2 — 2026-11-26

### Fixed

- Clicking with the Text tool on the capture screen creates a text box again.

## 0.6.1 — 2026-11-24

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@snaphub/desktop",
"version": "0.6.1",
"version": "0.6.2",
"private": true,
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/desktop/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "capkit-desktop"
version = "0.6.1"
version = "0.6.2"
description = "CapKit lightweight desktop toolkit to capture, record, and showcase"
authors = ["CapKit"]
edition = "2024"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "CapKit",
"version": "0.6.1",
"version": "0.6.2",
"identifier": "com.snaphub.desktop",
"build": {
"beforeDevCommand": "pnpm dev",
Expand Down
9 changes: 9 additions & 0 deletions apps/desktop/src/components/AnnotationCanvas.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,15 @@ describe("AnnotationCanvas effect previews", () => {
expect(onCommit).not.toHaveBeenCalled();
});

it("keeps the new editor focused after the press that created it", () => {
const { canvas } = renderText();
const notPrevented = fireEvent.pointerDown(canvas, { button: 0, clientX: 50, clientY: 60, pointerId: 1 });
// A real press focuses the focusable canvas unless its default is prevented.
if (notPrevented) canvas.focus();
expect(notPrevented).toBe(false);
expect(screen.getByRole("textbox", { name: "Edit annotation text" })).toHaveFocus();
});

it("drops empty or whitespace-only text without an undo entry", () => {
const { onCommit, onDelete, canvas } = renderText();
fireEvent.pointerDown(canvas, { button: 0, clientX: 50, clientY: 60, pointerId: 1 });
Expand Down
3 changes: 3 additions & 0 deletions apps/desktop/src/components/AnnotationCanvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,9 @@ export function AnnotationCanvas({
const annotation = createAnnotation(activeTool, point, point, style, scene);
if (annotation === null) return;
if (annotation.kind === "text") {
// The press would otherwise move focus to this canvas after the new editor
// autofocuses, blurring it at once; an empty blur drops the box before it shows.
event.preventDefault();
setPendingText(annotation);
setSelectedTextId(null);
beginTextEdit(annotation, "");
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "snaphub",
"version": "0.6.1",
"version": "0.6.2",
"private": true,
"packageManager": "pnpm@11.14.0",
"scripts": {
Expand Down
Loading