none
How do I tell if a CTP/Dialog has focus in a VSTO Word Addin RRS feed

  • Question

  • Hi,

    I want to add keyboard actions that affect content controls when the selection is inside the content control. However I have no way of telling if when the keyboard action is triggered that it occurred within a dialog or CTP rather than in the word document.

    Any suggestions?

    I've tried getting the wpf focused element and the keyboard focused element but neither of them return anything.

    Edit: Just to be clear I know how to the keyboard hook part, I need to know how to get the focused element.
    • Edited by EvaKnievel Wednesday, December 3, 2014 12:40 PM
    Wednesday, December 3, 2014 10:57 AM

All replies