Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

feat: clipboard access #1300

Merged
merged 14 commits into from
Sep 24, 2020
Merged

feat: clipboard access #1300

merged 14 commits into from
Sep 24, 2020

Conversation

pbosio
Copy link
Contributor

@pbosio pbosio commented Sep 14, 2020

  • enable access to store text in the clipboard
  • read text from the clipboard (firefox not supported)
  • fix copy & paste in webgl build

@pbosio pbosio self-assigned this Sep 14, 2020
@github-actions
Copy link

@pbosio pbosio added has addressable feedback Please use this tag to signal that the PR review is pending on feedback that needs to be addressed. and removed ready for review labels Sep 17, 2020
@pbosio pbosio added ready for review and removed has addressable feedback Please use this tag to signal that the PR review is pending on feedback that needs to be addressed. labels Sep 23, 2020
Copy link
Contributor

@BrianAmadori BrianAmadori left a comment

Choose a reason for hiding this comment

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

Thanks for applying the requests 😍

Left a mini-comment.

Comment on lines 7 to 19
public class ClipboardTests : TestsBase
{
[UnitySetUp]
protected override IEnumerator SetUp()
{
yield break;
}

[UnityTearDown]
protected override IEnumerator TearDown()
{
yield break;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can safely remove the TestsBase inheritance here, and thus don't need the SetUp and TearDown methods.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done 👍

@@ -22,6 +23,7 @@ private Environment()
messagingControllersManager = new MessagingControllersManager();
pointerEventsController = new PointerEventsController();
memoryManager = new MemoryManager();
clipboard = Clipboard.Create();
Copy link
Contributor

Choose a reason for hiding this comment

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

❤️


namespace DCL.Helpers
{
public class Promise<T> : CustomYieldInstruction
Copy link
Contributor

Choose a reason for hiding this comment

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

❤️

Comment on lines 61 to 63
public Promise()
{
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
public Promise()
{
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed 😅

Copy link
Contributor

@sandrade-dcl sandrade-dcl left a comment

Choose a reason for hiding this comment

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

Code reviewed! Only a thing: I have tested this build activating the new ProfileHUD (using ENABLE_NEW_TASKBAR url param) but I notice that the copy/paste behaviour is still not working with the wallet address... is it normal? do you have to apply some integration in the ProfileHUD after commit this PR to make it works?

@pbosio pbosio merged commit b630a1b into master Sep 24, 2020
@pbosio pbosio deleted the feat/clipboard-access branch September 24, 2020 14:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants