Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: move paste implementation into clipboard.ts #283

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rachel-fenichel
Copy link
Contributor

@rachel-fenichel rachel-fenichel commented Mar 6, 2025

Sibling of #281

Moves the actual implementation of paste out of navigation.ts and into clipboard.ts along with the rest of the callback. It's only used in one place and there was not a good reason to have the callback split into two pieces like this.

The second commit closes the event group in the case where paste succeeds; this was previously omitted, which was a bug.

Tested by copying and pasting in various places and checking that behaviour is consistent with main.

@rachel-fenichel rachel-fenichel requested a review from a team as a code owner March 6, 2025 01:37
@rachel-fenichel rachel-fenichel requested review from cpcallen and removed request for a team March 6, 2025 01:37
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