protected override void OnLostKeyboardFocus(KeyboardFocusChangedEventArgs e) { Logger.LogInfo("Slider-OnLostKeyboardFocus", "OnLostKeyboardFocus"); if (SliderMenu.IsOpen == false) { if (this.IsKeyboardFocusWithin == false) { (this.Parent as ExtensionPopup).DismissExtensionPopup(true); if (Slider.Value != prevSliderValue) { textEditorControl.RunScript(); } prevSliderValue = Slider.Value; } base.OnLostKeyboardFocus(e); } }