Initialize Windows desktop skeleton
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
namespace WirelessTextSyncer.Windows.Services;
|
||||
|
||||
public sealed class KeyboardInjectionService : IKeyboardInjectionService
|
||||
{
|
||||
public void InsertText(string text)
|
||||
{
|
||||
if (string.IsNullOrEmpty(text))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
SendKeys.SendWait(text);
|
||||
}
|
||||
|
||||
public void Backspace()
|
||||
{
|
||||
SendKeys.SendWait("{BACKSPACE}");
|
||||
}
|
||||
|
||||
public void Enter()
|
||||
{
|
||||
SendKeys.SendWait("{ENTER}");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user