I am attempting to use the Escape Key to abort a drawing action if required using
private void OnKeyDownHandler(object sender, KeyEventArgs e)
{
if (e.Key==Key.Escape)
{
Print("Escape key pressed");
}
}
however this is not being recognized. I have seen on some general C# forums that Escape Key recognition within WPF can be problematic.
Can someone please offer any suggestions on if/how this can be done.
Thank you.
Comment