public override void OnFocusChanged(WindowActivityMonitorInfo monitorInfo, ref bool handled)
{
Log.Debug();
_ttsEngineSupportsSpeechControl = false;
if (Context.AppTalkWindowManager.IsTalkWindowVisible &&
(monitorInfo.IsNewFocusedElement || monitorInfo.IsNewWindow))
{
var invoker = Context.AppTTSManager.ActiveEngine.GetInvoker();
_ttsEngineSupportsSpeechControl = invoker.SupportsMethod("SpeechControl") &&
invoker.SupportsMethod("IsValidSpeechControlSequence");
var automationElement = getTalkTextWinAutomationElement();
if (automationElement != null)
{
disposeTextInterface();
createTalkWindowTextInterface(monitorInfo.FgHwnd, automationElement);
if (!_talkWindowScannerShown)
{
_talkWindowScannerShown = true;
showPanel(this, new PanelRequestEventArgs(PanelClasses.Alphabet, monitorInfo));
}
}
}
handled = true;
}