Skip to content

Feat/tab shortcut and middle click fix#5

Merged
craig7351 merged 2 commits into
craig7351:mainfrom
ChrisLi826:feat/tab-shortcut-and-middle-click-fix
May 8, 2026
Merged

Feat/tab shortcut and middle click fix#5
craig7351 merged 2 commits into
craig7351:mainfrom
ChrisLi826:feat/tab-shortcut-and-middle-click-fix

Conversation

@ChrisLi826
Copy link
Copy Markdown

No description provided.

ChrisLi and others added 2 commits May 8, 2026 12:06
Mirror the existing Shift+ArrowUp/Down handler so the more
conventional Ctrl+PageUp/PageDown also switches tabs. Same
guards: capture phase, skipped in passthrough mode and when
focus is in a real text input.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
We were both calling navigator.clipboard.readText() + sshWrite on
mousedown AND letting WebKitGTK do its native primary-selection
paste into the focused textarea, so the same text reached the PTY
twice. Drop the manual readText path and keep only preventDefault
on middle-click to suppress the browser's auto-scroll affordance —
the native paste flows through xterm's onData handler exactly once.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@craig7351 craig7351 merged commit 4079814 into craig7351:main May 8, 2026
3 checks 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.

2 participants