Hi devs,
I am wondering if someone knows the answer to this interesting problem. I am working on one WPF application, which should to capture KeyDown events and react on them.
All works fine, I was surprised when arrow keys worked too with Jaws turned on, because this was a well known problem of many keys capturing mechanisms. But...
They works fine, until I show another dialog from my app, for example messagebox:
MessageBox.Show("This is a simple messagebox.");
After I click ok, focus returns to main form and arrow keys are arriving with a delay of about 2 seconds sometime, what is inacceptable for me.
However when I go to another window and return back, it works normal again.
What do you think can be a cause of this problem? I tried to apply:
Keyboard.Focus(this);
FocusManager.SetFocusedElement(this, this);
To set keyboard and logical focus to the instance of main window (this), but it didn't helped.
Any idea who is responsible for this behavior?
Thanks.
Best regards
Rastislav