public override void OnFocusChanged(WindowActivityMonitorInfo monitorInfo, ref bool handled) { Log.Debug("OnFocus: " + monitorInfo.ToString()); base.OnFocusChanged(monitorInfo, ref handled); Log.Debug("menuShown: " + _scannerShown + ", title: " + monitorInfo.Title); if (!_scannerShown && monitorInfo.Title == "Create New File") { var arg = new PanelRequestEventArgs("Alphabet", monitorInfo); _scannerShown = true; showPanel(this, arg); } handled = true; }