Skip to content

Pan with Shift while a live page has keyboard focus - #4

Merged
rishirsv merged 2 commits into
mainfrom
fix/shift-pan-from-page
Nov 21, 2026
Merged

rishirsv merged 2 commits into
mainfrom
fix/shift-pan-from-page

Conversation

@rishirsv

Copy link
Copy Markdown
Owner

Problem

After you select a board and click inside its live page, holding Shift and dragging interacts with the page. It does not pan. Panning starts to work only after keyboard focus returns to the canvas, so Shift seems slow to switch to the Hand tool.

Cause

A click inside the page moves keyboard focus into its sandboxed frame. The canvas listens for Shift on its own window, so it never receives the key. Also, presentFrame kept an interacting page live even while Shift was held.

Fix

  • The frame bridge reports Shift down and Shift up. The host page relays the message, and the canvas sets shiftPanning.
  • Shift now shields an interacting page, as it already does for a selected page.
  • A page in focus mode keeps Shift, so Shift-click still selects several pieces.
  • Shift pressed in the page's form fields or editable text is not reported.

Verification

  • A new camera-focus/shift-pan-page block fails on main (the camera stays at x 240) and passes with the fix (x 300, no revision). After release, the page takes the pointer again.
  • A probe in focus mode records the bridge's Shift messages. shiftPanning stays false and the page stays live.
  • These suites pass: layers, keyboard, snapshot-frame-isolation, screens-cli check, npm test and typecheck.
  • camera-focus, move-select/sel-marquee and app-bridge/bridge-claude fail on main in the same way. These failures existed before this change. The camera-focus blocks that follow the browser crash all pass when you run them one at a time.

Rishi Sharma added 2 commits November 21, 2026 16:58
A click inside a selected board's live page moves keyboard focus into
its frame, so the canvas never saw Shift and Shift-drag interacted with
the page instead of panning. The frame bridge now reports Shift down and
up, and Shift shields an interacting page as it does a selected one.
A focused page keeps Shift for selecting its own pieces.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T22:05:42.168189Z 5e6e1ba PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@rishirsv
rishirsv merged commit 448fa92 into main Nov 21, 2026
1 check passed
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