fix: esc to unset topmost

dev_config 0.12
DESKTOP-3BO4HSG\ksat 2 years ago
parent d8cda510a7
commit 4eaadff93b

@ -105,7 +105,11 @@ namespace STranslate
this.Hide(); this.Hide();
//取消置顶 //取消置顶
if (_IsTopmost)
{
TopmostBtn.SetResourceReference(TemplateProperty, _UnTopmostTemplateName); TopmostBtn.SetResourceReference(TemplateProperty, _UnTopmostTemplateName);
_IsTopmost = !_IsTopmost;
}
} }
//置顶 Ctrl+Shift+T //置顶 Ctrl+Shift+T
if (e.KeyboardDevice.Modifiers.HasFlag(ModifierKeys.Control) if (e.KeyboardDevice.Modifiers.HasFlag(ModifierKeys.Control)

Loading…
Cancel
Save