Skip to content

#593: Ctrl+V paste silently does nothing on GTK — quadraui swallows the key, vimcode has no ClipboardPaste handler - #742

Merged
JDonaghy merged 1 commit into
developfrom
issue-593-ctrl-v-paste-silently-does-nothing-on-gt
Sep 2, 2026
Merged

#593: Ctrl+V paste silently does nothing on GTK — quadraui swallows the key, vimcode has no ClipboardPaste handler#742
JDonaghy merged 1 commit into
developfrom
issue-593-ctrl-v-paste-silently-does-nothing-on-gt

Conversation

@JDonaghy

@JDonaghy JDonaghy commented Sep 2, 2026

Copy link
Copy Markdown
Owner

Closes #593

Automated PR opened by coordinator for review of issue #593.

…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>
@JDonaghy
JDonaghy merged commit a04a452 into develop Sep 2, 2026
2 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.

Ctrl+V paste silently does nothing on GTK — quadraui swallows the key, vimcode has no ClipboardPaste handler

1 participant