fix(terminal): allow Windows paste shortcuts - #5485
Open
Glucksberg wants to merge 2 commits into
Open
Conversation
added 2 commits
August 10, 2026 12:05
Signed-off-by: Glucksberg <glucksberg89@gmail.com>
Signed-off-by: Glucksberg <glucksberg89@gmail.com>
Glucksberg
marked this pull request as ready for review
August 10, 2026 18:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
Buzz Term encoded both
Ctrl+VandCtrl+Shift+Vas the^Vcontrol byte on Windows, then calledpreventDefault(). That prevented WebView2 from delivering the clipboard payload to the terminal's existing paste handler.Implementation
Ctrl+VandCtrl+Shift+Von Windows.Cmd+Von macOS andCtrl+Shift+Von Linux, while LinuxCtrl+Vremains Readline quoted-insert.event.keyso alternate keyboard layouts work, and reject Alt/mixed-modifier chords.onPastepath, including bracketed-paste wrapping.This is a focused follow-up discovered while field-testing #5425 / #4930. It is not a duplicate: #5425 fixes native PTY spawn, teardown, and PATH behavior; this PR fixes frontend keyboard event routing. I searched open PRs and issues for the Windows paste shortcuts and found no existing report or patch.
Tests
^V, and paste exactly once through bracketed paste.Ctrl+Vstill sends^V, whileCtrl+Shift+Vwaits for the paste event and forwards the clipboard exactly once through bracketed paste.just cicomponent set passed. The aggregate invocation was interrupted during Tauri compilation only because the isolated worktree filled the host disk; after removing its regenerable roottarget/,just desktop-tauri-testandjust mobile-testboth passed. Notable totals: 2,383 Tauri app tests passed (14 environment-dependent tests ignored), terminal crate suites passed, and 1,261 Flutter tests passed.pnpm check, desktop typecheck, Rust fmt/clippy/check, web check/build, andgit diff --checkpassed. The frontend check reports one warning and two informational findings already present on currentmain, outside these files.Windows field proof
The exact patch was built and tested on Windows 11 before being cleanly rebased onto current
main(the canary commit and the production-code commit in this PR have the same stable patch ID).b00790a6ceb4cb0967fe07711d7174338cd92f8dBuzz_0.5.9-fork.8_x64-setup.exe049a0507694002af0f7232c3158f5915f0536fd9e260f506075404023695f4efCtrl+VandCtrl+Shift+Vpaste once without emitting^V. In shells with bracketed paste enabled, the temporary active-region emphasis clears on the next keypress as expected.Manual test
Ctrl+V; confirm it appears once and no^Vis inserted.Ctrl+Shift+V.Visual evidence
No screenshot is included because this changes keyboard event routing and has no persistent visual state. The Windows canary run and manual interaction results above are the relevant behavioral evidence.
Deferred work
None for this fix.