aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Ava/Ui/Controls/OffscreenTextBox.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Ava/Ui/Controls/OffscreenTextBox.cs')
-rw-r--r--Ryujinx.Ava/Ui/Controls/OffscreenTextBox.cs40
1 files changed, 0 insertions, 40 deletions
diff --git a/Ryujinx.Ava/Ui/Controls/OffscreenTextBox.cs b/Ryujinx.Ava/Ui/Controls/OffscreenTextBox.cs
deleted file mode 100644
index ffe5bdde..00000000
--- a/Ryujinx.Ava/Ui/Controls/OffscreenTextBox.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using Avalonia.Controls;
-using Avalonia.Input;
-using Avalonia.Interactivity;
-
-namespace Ryujinx.Ava.Ui.Controls
-{
- public class OffscreenTextBox : TextBox
- {
- public RoutedEvent<KeyEventArgs> GetKeyDownRoutedEvent()
- {
- return KeyDownEvent;
- }
-
- public 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,
- Device = KeyboardDevice.Instance,
- Source = this,
- RoutedEvent = TextInputEvent
- });
- }
- }
-} \ No newline at end of file