public override void OnFocusChanged(WindowActivityMonitorInfo monitorInfo, ref bool handled)
{
Log.Debug();
outlookWindowType = identifyWindow(monitorInfo, ref outlookControlSubType);
controlType = monitorInfo.FocusedElement.Current.ControlType;
Log.Debug("OutlookWindowType: " + outlookWindowType + ", subType: " + outlookControlSubType);
String title = PanelTitle;
base.OnFocusChanged(monitorInfo, ref handled);
if (autoSwitchScanners)
{
var panel = getContextualMenuForWindow(outlookWindowType, ref title);
showPanel(this, new PanelRequestEventArgs(panel, title, monitorInfo));
}
else
{
if (!_scannerShown)
{
showPanel(this, new PanelRequestEventArgs(PanelClasses.Alphabet, monitorInfo));
_scannerShown = true;
}
}
handled = true;
}