#593: Ctrl+V paste silently does nothing on GTK — quadraui swallows the key, vimcode has no ClipboardPaste handler - #742
Merged
JDonaghy merged 1 commit intoSep 2, 2026
Conversation
…n GTK quadraui's GTK runner reads the system clipboard on Ctrl+V / Ctrl+Shift+V / middle-click and delivers UiEvent::ClipboardPaste, unconditionally consuming the key — there was no arm for it in ShellApp::handle, so the event fell into the catch-all `_` and paste silently did nothing. Added the arm, routing through the same Engine::route_paste TUI's ClipboardPaste handler already uses. route_paste gained an explorer-rename (tree inline-edit) branch: it's a distinct focus context that isn't gated by engine.mode, so without it a paste there would have fallen through to normal-mode `p`-paste dispatch instead of inserting into the rename field. Deleted Msg::ClipboardPasteToInput and its two GDK read_text_async producers (the "PasteClipboard" synthetic-key branch and the search-focus ctrl+v branch in handle_key_press) — both were unreachable: quadraui now intercepts Ctrl+V before a raw KeyPressed for it is ever dispatched, and the synthetic "PasteClipboard" key name was never produced by anything. Adds a GtkDriver black-box test asserting the *rendered* command-line text after a dispatched ClipboardPaste event (verified RED against the pre-fix handle() catch-all), plus a core-engine unit test for the new explorer-rename route_paste branch. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.
Closes #593
Automated PR opened by coordinator for review of issue #593.