From 0ad3b2a30578a1e8c5d6d95d5a5ca9955a441a71 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Tue, 16 Jun 2020 22:48:13 +0200 Subject: [PATCH] Downgrade TextCopy since the new version causes issues on some devices --- Demos.Android/Demos.Android.csproj | 2 +- MLEM.Ui/Elements/TextField.cs | 4 ++-- MLEM.Ui/MLEM.Ui.csproj | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Demos.Android/Demos.Android.csproj b/Demos.Android/Demos.Android.csproj index 6344ecd..cbf2a26 100644 --- a/Demos.Android/Demos.Android.csproj +++ b/Demos.Android/Demos.Android.csproj @@ -72,7 +72,7 @@ - + diff --git a/MLEM.Ui/Elements/TextField.cs b/MLEM.Ui/Elements/TextField.cs index 43bebab..4a0fd57 100644 --- a/MLEM.Ui/Elements/TextField.cs +++ b/MLEM.Ui/Elements/TextField.cs @@ -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); } } diff --git a/MLEM.Ui/MLEM.Ui.csproj b/MLEM.Ui/MLEM.Ui.csproj index 75618e7..0bdf47e 100644 --- a/MLEM.Ui/MLEM.Ui.csproj +++ b/MLEM.Ui/MLEM.Ui.csproj @@ -18,7 +18,7 @@ all - +