diff --git a/Content.Client/Paper/UI/PaperBoundUserInterface.cs b/Content.Client/Paper/UI/PaperBoundUserInterface.cs index 6b12cfe3a7..4b0ac868f0 100644 --- a/Content.Client/Paper/UI/PaperBoundUserInterface.cs +++ b/Content.Client/Paper/UI/PaperBoundUserInterface.cs @@ -1,6 +1,5 @@ using JetBrains.Annotations; using Robust.Client.UserInterface.Controls; -using Robust.Shared.Input; using Robust.Shared.Utility; using static Content.Shared.Paper.SharedPaperComponent; @@ -22,15 +21,7 @@ public sealed class PaperBoundUserInterface : BoundUserInterface _window = new PaperWindow(); _window.OnClose += Close; - _window.Input.OnKeyBindDown += args => // Solution while TextEdit don't have events - { - if (args.Function == EngineKeyFunctions.MultilineTextSubmit) - { - var text = Rope.Collapse(_window.Input.TextRope); - Input_OnTextEntered(text); - args.Handle(); - } - }; + _window.OnSaved += Input_OnTextEntered; if (EntMan.TryGetComponent(Owner, out var visuals)) { diff --git a/Content.Client/Paper/UI/PaperWindow.xaml b/Content.Client/Paper/UI/PaperWindow.xaml index 279dd72b27..2344afd5ef 100644 --- a/Content.Client/Paper/UI/PaperWindow.xaml +++ b/Content.Client/Paper/UI/PaperWindow.xaml @@ -25,5 +25,9 @@ + + +