Skip to content

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.
@nstelter-slac nstelter-slac force-pushed the fix_middle_click_paste branch from ed0a504 to 2614566 Compare May 7, 2024 00:00
@nstelter-slac nstelter-slac force-pushed the fix_middle_click_paste branch from 909e0e5 to aa4e2df Compare May 7, 2024 00:04
Do this to avoid middle-click pasting clipboard contents into
PyDMLineEdits. This seems like cleaner way to do it than before.
@nstelter-slac nstelter-slac force-pushed the fix_middle_click_paste branch from 9abbc25 to 0e55680 Compare May 7, 2024 01:04
@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