title: Can I forward keyboard shortcuts to a lync conversation window docked in a WPF window
body: <p>I am working with Lync 2013 SDK and WPF in a way to add a toolbar to the Lync conversation window.</p>
  
  <p>I did dock the Lync conversation window in a panel inside a WindowFormHost pretty much following this tutorial <a href="http://msdn.microsoft.com/en-us/library/lync/jj933086.aspx">http://msdn.microsoft.com/en-us/library/lync/jj933086.aspx</a>.</p>
  
  <p>Now I can add my custom functionnality inside my WPF window.</p>
  
  <p>The problem is that docking the conversation causes all Lync conversation window shortcuts to act in a strange way. By default, they don't work anymore, even if I try to focus the docked conversation window, they still don't work but when I focus a control of this window they start working all over again.</p>
  
  <p>I need them working whatever is focused on in my WPF window or the docked Lync conversation window.</p>
  
  <p>I tried to use some user32.dll functions to invoke those shortcuts using the conversation window handle IntPtr, but it did not work.</p>
  
  <p>I also tried to use</p>
  
  <pre><code>SetForegroundWindow(_automation.GetConversationWindow(convertion).Handle)
  </code></pre>
  
  <p>and then use</p>
  
  <pre><code>SendKeys.SendWait(keys)
  </code></pre>
  
  <p>but it only work when the conversation is not docked.</p>