-
Notifications
You must be signed in to change notification settings - Fork 40
Conversation
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
This branch can be previewed at https://explorer.decentraland.zone/branch/feat/clipboard-access/index.html |
...cripts/MainScripts/DCL/Controllers/Clipboard/Implementation/Web/Plugins/ClipboardWebGL.jslib
Outdated
Show resolved
Hide resolved
unity-client/Assets/Scripts/MainScripts/DCL/Controllers/Scene/SceneController.cs
Outdated
Show resolved
Hide resolved
...nt/Assets/Scripts/MainScripts/DCL/Controllers/Clipboard/Implementation/Web/ClipboardWebGL.cs
Outdated
Show resolved
Hide resolved
...nt/Assets/Scripts/MainScripts/DCL/Controllers/Clipboard/Implementation/Web/ClipboardWebGL.cs
Outdated
Show resolved
Hide resolved
unity-client/Assets/Scripts/MainScripts/DCL/Controllers/Clipboard/ClipboardReadPromise.cs
Outdated
Show resolved
Hide resolved
...ets/Scripts/MainScripts/DCL/Controllers/Clipboard/Implementation/IClipboardImplementation.cs
Outdated
Show resolved
Hide resolved
unity-client/Assets/Scripts/MainScripts/DCL/Controllers/Clipboard/Clipboard.cs
Outdated
Show resolved
Hide resolved
unity-client/Assets/Scripts/MainScripts/DCL/Controllers/Clipboard/Clipboard.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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.
public class ClipboardTests : TestsBase | ||
{ | ||
[UnitySetUp] | ||
protected override IEnumerator SetUp() | ||
{ | ||
yield break; | ||
} | ||
|
||
[UnityTearDown] | ||
protected override IEnumerator TearDown() | ||
{ | ||
yield break; | ||
} |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
public Promise() | ||
{ | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public Promise() | |
{ | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed 😅
There was a problem hiding this 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?