views:

21

answers:

0

This is probably a simple question but i've been unable to find a quick answer.

I have a WPF application which has a Windows Forms Control hosting a GeckoFX component (doesn't really matter).

What i want to do is capture key down events inside the Windows Forms Control and grab focus of a WPF control for some particular key combination. And what if i want to capture events from the entire WPF application window (even inside the Windows Forms Control)? I tried handling the KeyDown event and PreviewKeyDown event but to no avail.

What i want to know is if this is possible and how this should be done. I can post some code if required.