Skip to content

Commit 182af68

Browse files
t3dotggclaude
andcommitted
chore(desktop): keep the press focus guard's comment and test name accurate
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent b1b09c7 commit 182af68

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/desktop/src/preview/GuestInput.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ describe("preview guest input", () => {
125125
);
126126

127127
it.each([{ userClicksStuckTab: false }, { userClicksStuckTab: true }])(
128-
"keeps the right focus when a sibling tab's press overlaps a stuck one, user clicks: $userClicksStuckTab",
128+
"keeps the right focus when a sibling press finishes beside a stuck one, user clicks: $userClicksStuckTab",
129129
async ({ userClicksStuckTab }) => {
130130
const document = { activeElement: {} as object };
131131
const composer = {

‎apps/desktop/src/preview/GuestInput.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const evaluate = async (debuggee: Electron.Debugger, expression: string) => {
9292
return reply.result?.value;
9393
};
9494

95-
/** Host focus saved by the first of the presses in flight in one window, so a later press cannot save a webview. */
95+
/** Host focus shared by the presses in flight in one window, so a later press keeps the field an earlier one saved. */
9696
const HOST_FOCUS = "globalThis.__t3PreviewFocus";
9797

9898
/** A CDP pointer press focuses the guest's native view even with focus emulation enabled. */

0 commit comments

Comments
 (0)