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

FIX: Fix middle click paste #1034

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

nstelter-slac
Copy link
Collaborator

@nstelter-slac nstelter-slac commented Sep 23, 2023

to prevent middle click from pasting clipboard contents when copying the channel from a widget,
we need to override the "QEvent.MouseButtonRelease" event, which is where the paste occurs by default.

we can move the pydm specific middle-click functionality to be what overrides the default middle click paste behavior.

@nstelter-slac nstelter-slac marked this pull request as ready for review September 26, 2023 20:28
This prevents middle click from pasting channel info into pydmlineedits
…channel

This way we prevent the automatic-pasting of middle-click clipboard into PyDMLineEdits, but still allow pasting with middle-click into other edits used for entering text.
Do this to avoid middle-click pasting clipboard contents into
PyDMLineEdits. This seems like cleaner way to do it than before.
@YektaY YektaY changed the title Fix middle click paste FIX: Fix middle click paste May 7, 2024
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.

PyDMLineEdits past the pv into themselves when trying to copy a pv out of them
1 participant