You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
commander/MockKeyboardService.cs

17 lines
464 B
C#

namespace CommanderApp.Services;
public class MockKeyboardService : IKeyboardService
{
public event EventHandler<KeyPressedEventArgs> KeyPressed;
public void SetupKeyboardHandling(ContentPage page)
{
// Mock implementation - does nothing
}
// Method to simulate key presses in tests
public void SimulateKeyPress(string key)
{
KeyPressed?.Invoke(this, new KeyPressedEventArgs { Key = key, Platform = "Test" });
}
}