I have a WPF desktop application written with NET Core 3.1 and it catches keystrokes with KeyDown command. All characters are caught with the keyboard. When I use a Streamdeck and its System Text feature, which sends keys like a keyboard my WPF app doesn't catch it.
Tested on Notepad and the text sent from the Streamdeck works as it should, e.g. X 1 Enter.
When I debug the only thing that gets sent is Enter key.
private void MyApp_KeyDown(object sender, KeyEventArgs e)
{
if (e.Key == Key.X)
{
//do something
}
}
Everything works fine with a normal keyboard. Barcode Scanner works too. It's the Streamdeck that won't catch the text it sends.
Is there anything I need to set in my project to catch it?