mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-22 04:53:29 +01:00
Downgrade TextCopy since the new version causes issues on some devices
This commit is contained in:
parent
0ea22435c2
commit
0ad3b2a305
3 changed files with 4 additions and 4 deletions
|
@ -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">
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue