mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-22 12:58:33 +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="Coroutine" Version="2.0.0" />
|
||||||
<PackageReference Include="MonoGame.Content.Builder" Version="3.7.0.9" />
|
<PackageReference Include="MonoGame.Content.Builder" Version="3.7.0.9" />
|
||||||
<PackageReference Include="MonoGame.Framework.Android" Version="3.7.1.189" />
|
<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>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\Demos\Demos.csproj">
|
<ProjectReference Include="..\Demos\Demos.csproj">
|
||||||
|
|
|
@ -210,12 +210,12 @@ namespace MLEM.Ui.Elements {
|
||||||
this.CaretPos = this.text.Length;
|
this.CaretPos = this.text.Length;
|
||||||
} else if (this.Input.IsModifierKeyDown(ModifierKey.Control)) {
|
} else if (this.Input.IsModifierKeyDown(ModifierKey.Control)) {
|
||||||
if (this.Input.IsKeyPressed(Keys.V)) {
|
if (this.Input.IsKeyPressed(Keys.V)) {
|
||||||
var clip = ClipboardService.GetText();
|
var clip = Clipboard.GetText();
|
||||||
if (clip != null)
|
if (clip != null)
|
||||||
this.InsertText(clip);
|
this.InsertText(clip);
|
||||||
} else if (this.Input.IsKeyPressed(Keys.C)) {
|
} else if (this.Input.IsKeyPressed(Keys.C)) {
|
||||||
// until there is text selection, just copy the whole content
|
// 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">
|
<PackageReference Include="MonoGame.Framework.Portable" Version="3.7.1.189">
|
||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
<PackageReference Include="TextCopy" Version="4.2.0" />
|
<PackageReference Include="TextCopy" Version="3.0.2" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
Loading…
Reference in a new issue