1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-05-13 20:58:45 +02:00

Downgrade TextCopy since the new version causes issues on some devices

This commit is contained in:
Ellpeck 2020-06-16 22:48:13 +02:00
parent 0ea22435c2
commit 0ad3b2a305
3 changed files with 4 additions and 4 deletions

View file

@ -72,7 +72,7 @@
<PackageReference Include="Coroutine" Version="2.0.0" />
<PackageReference Include="MonoGame.Content.Builder" Version="3.7.0.9" />
<PackageReference Include="MonoGame.Framework.Android" Version="3.7.1.189" />
<PackageReference Include="TextCopy" Version="4.2.0" />
<PackageReference Include="TextCopy" Version="3.0.2" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Demos\Demos.csproj">

View file

@ -210,12 +210,12 @@ namespace MLEM.Ui.Elements {
this.CaretPos = this.text.Length;
} else if (this.Input.IsModifierKeyDown(ModifierKey.Control)) {
if (this.Input.IsKeyPressed(Keys.V)) {
var clip = ClipboardService.GetText();
var clip = Clipboard.GetText();
if (clip != null)
this.InsertText(clip);
} else if (this.Input.IsKeyPressed(Keys.C)) {
// until there is text selection, just copy the whole content
ClipboardService.SetText(this.Text);
Clipboard.SetText(this.Text);
}
}

View file

@ -18,7 +18,7 @@
<PackageReference Include="MonoGame.Framework.Portable" Version="3.7.1.189">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="TextCopy" Version="4.2.0" />
<PackageReference Include="TextCopy" Version="3.0.2" />
</ItemGroup>
<ItemGroup>