Skip to content

fix: handle paste in inputboxes#813

Merged
dlvhdr merged 1 commit intodlvhdr:mainfrom
sideshowbarker:fix/paste-inputbox
Mar 27, 2026
Merged

fix: handle paste in inputboxes#813
dlvhdr merged 1 commit intodlvhdr:mainfrom
sideshowbarker:fix/paste-inputbox

Conversation

@sideshowbarker
Copy link
Copy Markdown
Contributor

@sideshowbarker sideshowbarker commented Mar 25, 2026

Bug: Pasting text into the comment, approve, assign, or label inputbox does nothing.

Cause: Bubbletea v2 enables bracketed paste by default, delivering pasted text as PasteMsg rather than individual KeyMsg events. The inputbox controller only handled KeyMsg, so PasteMsg was silently dropped.

Fix: Add a PasteMsg case in Controller.Update() that forwards the message to the underlying textarea when the controller is active.

Fixes #811

Bug: Pasting text into the comment, approve, assign, or label
inputbox does nothing.

Cause: Bubbletea v2 enables bracketed paste by default, delivering
pasted text as PasteMsg — not individual KeyMsg events. The inputbox
controller only handled KeyMsg, so PasteMsg was silently dropped.

Fix: Add a PasteMsg case in the inputbox controller that forwards the
message to the underlying textarea when active.

Fixes dlvhdr#811
@sideshowbarker sideshowbarker changed the title fix: handle paste in prview and issueview inputboxes fix: handle paste in inputboxes Mar 25, 2026
Copy link
Copy Markdown
Owner

@dlvhdr dlvhdr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<3

@dlvhdr dlvhdr merged commit 61dfc6b into dlvhdr:main Mar 27, 2026
3 checks passed
@sideshowbarker sideshowbarker deleted the fix/paste-inputbox branch March 27, 2026 15:22
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.

[BUG] No longer can paste in inputbox

2 participants