Skip to content

Conversation

@rachel-fenichel
Copy link
Collaborator

@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
Copy link
Collaborator

@cpcallen cpcallen left a comment

Choose a reason for hiding this comment

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

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

There is only one commit in this PR!

@rachel-fenichel
Copy link
Collaborator Author

Oops! Added the second commit.

@rachel-fenichel rachel-fenichel merged commit 0ae1b73 into RaspberryPiFoundation:main Mar 12, 2025
1 check passed
gonfunko pushed a commit that referenced this pull request Mar 14, 2025
* chore: move paste implementation into clipboard.ts

* fix: correctly set event group
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