feat: placeholder for touch screen editors

This commit is contained in:
2026-04-20 15:17:21 +03:00
parent 392b20ccee
commit 437107ecb8
5 changed files with 61 additions and 17 deletions
+20
View File
@@ -0,0 +1,20 @@
using Avalonia.Controls;
using Avalonia.Input;
namespace GSS2;
public class TouchTextBox : TextBox
{
protected override Type StyleKeyOverride => typeof(TextBox);
public TouchTextBox()
: base()
{
AddHandler(PointerPressedEvent, OnPointerPressed, handledEventsToo: true);
}
private void OnPointerPressed(object? sender, PointerPressedEventArgs ea)
{
Console.WriteLine($"TODO: process TouchTextBox.PointerPressed event");
}
}