aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Ava/UI/Helpers/OffscreenTextBox.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.Ava/UI/Helpers/OffscreenTextBox.cs')
-rw-r--r--src/Ryujinx.Ava/UI/Helpers/OffscreenTextBox.cs39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/Ryujinx.Ava/UI/Helpers/OffscreenTextBox.cs b/src/Ryujinx.Ava/UI/Helpers/OffscreenTextBox.cs
deleted file mode 100644
index a055f335..00000000
--- a/src/Ryujinx.Ava/UI/Helpers/OffscreenTextBox.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-using Avalonia.Controls;
-using Avalonia.Input;
-using Avalonia.Interactivity;
-
-namespace Ryujinx.Ava.UI.Helpers
-{
- public class OffscreenTextBox : TextBox
- {
- public static RoutedEvent<KeyEventArgs> GetKeyDownRoutedEvent()
- {
- return KeyDownEvent;
- }
-
- public static RoutedEvent<KeyEventArgs> GetKeyUpRoutedEvent()
- {
- return KeyUpEvent;
- }
-
- public void SendKeyDownEvent(KeyEventArgs keyEvent)
- {
- OnKeyDown(keyEvent);
- }
-
- public void SendKeyUpEvent(KeyEventArgs keyEvent)
- {
- OnKeyUp(keyEvent);
- }
-
- public void SendText(string text)
- {
- OnTextInput(new TextInputEventArgs
- {
- Text = text,
- Source = this,
- RoutedEvent = TextInputEvent,
- });
- }
- }
-}