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

Prevent search input reset from overwriting clipboard on Linux #2108

Merged

Conversation

vallode
Copy link
Contributor

@vallode vallode commented Mar 5, 2022


Prevent search input reset from overwriting clipboard on Linux

Pull Request Type

  • Bugfix

Related issue
Closes #2019

Description
Removes the input event emitter in favour of a more standard way of clearing an input field to prevent clipboards being overwritten.

Testing (for code that is not small enough to be easily understandable)
Test with any form of selection-based clipboards (middle mouse button on most Linux systems). Select any text, use middle mouse button to paste, type something else into FreeTube search, click the X button to clear it, paste again.

Desktop (please complete the following information):

  • OS: [e.g. iOS] Debian
  • OS Version: [e.g. 22] 11
  • FreeTube version: [e.g. 0.8] v0.16.0 Beta

Additional context
#2019 (comment) user confirms that this is the expected behaviour for the X button. Cheers

@PrestonN PrestonN enabled auto-merge (squash) March 5, 2022 23:44
@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc added the PR: waiting for review For PRs that are complete, tested, and ready for review label Mar 6, 2022
Copy link
Member

@ChunkyProgrammer ChunkyProgrammer left a comment

Choose a reason for hiding this comment

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

Lgtm

@PrestonN PrestonN merged commit b202ec8 into FreeTubeApp:development May 13, 2022
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label May 13, 2022
@Pistos
Copy link

Pistos commented May 13, 2022

Thank you so much for this. I've built (the development branch), and confirmed that the fix works for me.

(Thank you also for not just dismissing the issue as "works for me" or "user error".)

@PikachuEXE
Copy link
Collaborator

There are so many platforms and no way we can be sure things work for all platforms well.
I only use Windows & MacOS so I would never dismiss Linux related issues.
We should always admit that there is a possibility of making mistakes and fix those mistakes when they appear (if worth fixing & can be fixed).

@vallode vallode deleted the fix/search-clipboard-hijack branch May 15, 2022 07:38
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.

[Feature Request]: Reduce clipboard aggression of search field
6 participants