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

Copying hex code from exported Color variable does not copy anything to clipboard #35603

Closed
Kiel97 opened this issue Jan 26, 2020 · 6 comments · Fixed by #37274
Closed

Copying hex code from exported Color variable does not copy anything to clipboard #35603

Kiel97 opened this issue Jan 26, 2020 · 6 comments · Fixed by #37274

Comments

@Kiel97
Copy link

Kiel97 commented Jan 26, 2020

Godot version:
3.2 RC 3
3.2 Stable

OS/device including version:
Windows 7 Home Premium Service Pack 1
Windows 10 Home

Issue description:
When user tries to copy hex code of color he picked using exported Color variable, he gets "color" string when pasted instead nothing copied to clipboard.

Steps to reproduce:

  1. Export Color variable so it becomes visible in Inspector
  2. Change that variable value in Inspector
  3. Try to copy Hex Code visible in bottom right corner of dialog
  4. Paste copied value

Minimal reproduction project:
ExportColorIssueProject.zip

@Calinou
Copy link
Member

Calinou commented Jan 26, 2020

I can't reproduce this on commit 9daaa12 with the linked reproduction project.

Make sure the hexadecimal code is displayed instead of the color string:

Hexadecimal code

image

Color string

image

@Kiel97
Copy link
Author

Kiel97 commented Jan 27, 2020

According to color string, I meant I got in clipboard literally "color" text, 5 chars, not color value as Godot's Color object.

Well, I have discovered something else. I downloaded Godot 3.2 RC 3 on my another PC with Windows 10 Home installed. I tried to reproduce this bug with attached project and it seems copying hex code from that dialog doesn't work at all. Both Control+C and Right Mouse Context Menu are not working. I made sure my clipboard board works my copying and pasting random text in Node description and it's fine. Also I made sure I'm trying to copy hex code, not the Color object as you showed on images above.

@nathanfranke
Copy link
Contributor

Cannot reproduce this on RC 3 Mono, I am using Linux Mint 19.3.

It is likely that this is a Windows-only issue, but "needs testing" indeed

@issork
Copy link
Contributor

issork commented Feb 6, 2020

I have discovered something else which might be related - Linux Mint 19.3;

Could it be that you already had "color" in your clipboard? When I attempt to copy the hex value using the rmb context menu, the selection is cleared as soon as the mouse enters it, resulting in nothing actually being copied.

@Kiel97
Copy link
Author

Kiel97 commented Feb 8, 2020

@MennoMax Sorry for my late response. Well, I tried reproducing this issue on both Windows 7 and 10 with Godot 3.2 stable and it's just like you say. Actually, nothing is copied to clipboard while trying to copy Hex Code of color variable. You are right. I have changed title of this bug.

Windows 7
Windows7

Windows 10
Windows10

@Kiel97 Kiel97 changed the title Copying hex code from exported Color variable actually copies "color" string Copying hex code from exported Color variable does not copy anything to clipboard Feb 8, 2020
@jluini
Copy link

jluini commented Mar 22, 2020

I have this issue in 3.2 and noted that only happens if you copy with mouse (using right-click menu), not with keyboard (ctrl-c).

It just happens always. The problem is that the text gets deselected when you right-click it; probably it is caused by the color validation and correction done when it loses focus.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants