scudcloud icon indicating copy to clipboard operation
scudcloud copied to clipboard

Unable to paste an image to chat from the clipboard

Open Grief opened this issue 9 years ago • 13 comments

ScudCloud Version

ScudCloud 1.52 Python 3.5.3 Qt 5.7.1 PyQt 5.7 SIP 4.18.1

Distro and Desktop info

Ubuntu Zesty+KDE Neon

ISSUE

I cannot CTRL+V an image from the clipboard to the chat anymore since one of the recent Qt updates (probably). Also, I cannot get context menu with right click in the message text box (that which contains 'cut', 'copy' and 'paste'). Nothing happens when I click text box with right button, until I select some text.

Grief avatar Apr 11 '17 00:04 Grief

You're right, more one side effect from the migration to Qt5 :(

I'll investigate.

raelgc avatar Apr 11 '17 11:04 raelgc

@raelgc I was one of the first who tried qt5 port and it was working well. I suspect that something changed in Qt5 recently. By the way, I remember there was an issue with spell checking in qt5 - mistakes were not highlighted with red. I see highlighting now but it is totally misplaced.

Grief avatar Apr 11 '17 12:04 Grief

@raelgc your fix for right click is working now :+1: , but I am still not able to paste images :(

Grief avatar Apr 11 '17 13:04 Grief

@Grief Yeap, Qt version included in Ubuntu received several "fixes", and they broken a lot of working stuff. Mainly the image pasting, red marking and zoom scale.

raelgc avatar Apr 11 '17 13:04 raelgc

Interestingly, if you paste the image while the cursor is not in the message area, it'll work.

raelgc avatar Apr 11 '17 19:04 raelgc

@raelgc I confirm that. For me this workaround is sufficient, thanks!

Grief avatar Apr 12 '17 11:04 Grief

@raelgc thanks for this workaround! (https://github.com/raelgc/scudcloud/issues/563#issuecomment-293376019)

cayetanobv avatar Apr 19 '17 22:04 cayetanobv

Soon I'll publish a fix for it (it's ready, waiting to be merged and published).

raelgc avatar Apr 19 '17 22:04 raelgc

@raelgc these is awesome!! Thanks again for your great work with scudcloud.

cayetanobv avatar Apr 19 '17 22:04 cayetanobv

@raelgc @Grief With 1.57 it works fine again (with the cursor in the message area). Thanks.

cayetanobv avatar Apr 21 '17 07:04 cayetanobv

Thank you all for raising this issue and the feedback!

raelgc avatar Apr 21 '17 11:04 raelgc

@raelgc it is not working again in 1.65 (I actually tried master) - Linux Mint 18.3 The workaround works though (paste when the cursor not in the message area)

akanarsky avatar Feb 20 '18 07:02 akanarsky

@akanarsky Slack is constantly changing their JS code, which is hard to follow. Need to debug and investigate the reason why it's not accepting the content when pasting with cursor in the message area.

Can you open a separate issue, detailing it's happening only when cursor is in the message input?

raelgc avatar Mar 14 '18 16:03 raelgc