GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(desktop): annotation tool keys work after clicking a toolbar button by juliusmarminge · Pull Request #26211 · pingdotgg/t3code

fix(desktop): annotation tool keys work after clicking a toolbar button #26211

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
juliusmarminge merged 6 commits into main from fix/issue-7700
Nov 11, 2026

Uh oh!

There was an error while loading. Please reload this page.

Merged

fix(desktop): annotation tool keys work after clicking a toolbar button #26211

Changes from 1 commit
Commits
Show all changes
6 commits
Select commit Hold shift + click to select a range
4d3a0b4
test(desktop): reproduce #7700, annotation tool keys ignored after cl…
juliusmarminge Oct 27, 2026
1667f6f
fix(desktop): annotation tool keys work after clicking a toolbar button
juliusmarminge Oct 27, 2026
f0d8dfd
Merge remote-tracking branch 'origin/main' into fix/issue-7700
juliusmarminge Oct 27, 2026
7787049
test(desktop): load the annotation preload at collection, not inside …
juliusmarminge Oct 28, 2026
b70cdc9
Merge remote-tracking branch 'origin/main' into fix/issue-7700
juliusmarminge Nov 11, 2026
fd46d82
Merge remote-tracking branch 'origin/main' into fix/issue-7700
juliusmarminge Nov 11, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Prev Previous commit
Next Next commit
test(desktop): load the annotation preload at collection, not inside …
…each test

A cold transform of the preload under heavy load exceeded the 15s test
timeout when it ran inside the test body.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge @claude
juliusmarminge and claude committed Oct 28, 2026
commit 7787049cdaa20f9cd76e3a4714b91ea9e0dd6c2e

There are no files selected for viewing

12 changes: 6 additions & 6 deletions 12 apps/desktop/src/preview/PickPreload.test.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { expect, it, vi } from "vite-plus/test";

import { START_PICK_CHANNEL } from "./GuestProtocol.ts";
import "./PickPreload.ts";

const ipcListeners = vi.hoisted(() => new Map<string, Array<(...args: unknown[]) => void>>());

Expand All @@ -17,24 +18,23 @@ vi.mock("electron", () => ({

vi.mock("react-grab/primitives", () => ({ getElementContext: async () => null }));

const startAnnotation = async (): Promise<ShadowRoot> => {
const startAnnotation = (): ShadowRoot => {
vi.stubGlobal(
"ResizeObserver",
class {
observe() {}
disconnect() {}
},
);
await import("./PickPreload.ts");
using attachShadow = vi.spyOn(Element.prototype, "attachShadow");
for (const listener of ipcListeners.get(START_PICK_CHANNEL) ?? []) listener({}, undefined, false);
const shadowRoot = attachShadow.mock.results[0]?.value;
if (!(shadowRoot instanceof ShadowRoot)) throw new Error("annotation overlay did not start");
return shadowRoot;
};

it("switches tools from the keyboard after a toolbar button is clicked", async () => {
const shadowRoot = await startAnnotation();
it("switches tools from the keyboard after a toolbar button is clicked", () => {
const shadowRoot = startAnnotation();
const region = Array.from(shadowRoot.querySelectorAll("button")).find(
(button) => button.textContent === "Region",
);
Expand All @@ -52,8 +52,8 @@ it("switches tools from the keyboard after a toolbar button is clicked", async (
).toBe("select");
});

it("keeps the tool while typing a tool key in the comment", async () => {
const shadowRoot = await startAnnotation();
it("keeps the tool while typing a tool key in the comment", () => {
const shadowRoot = startAnnotation();
const comment = shadowRoot.querySelector("textarea");
if (!comment) throw new Error("comment textarea not found");

Expand Down
Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.