mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 10:16:24 +02:00
* [Peek] WindowActivationState checks are added for focus and close after losing focus. * Add setting to activate the behavior --------- Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
27 lines
839 B
C#
27 lines
839 B
C#
// Copyright (c) Microsoft Corporation
|
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
using System.Text.Json;
|
|
|
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
|
{
|
|
public class PeekProperties
|
|
{
|
|
public PeekProperties()
|
|
{
|
|
ActivationShortcut = new HotkeySettings(false, true, false, false, 0x20);
|
|
AlwaysRunNotElevated = new BoolProperty(true);
|
|
CloseAfterLosingFocus = new BoolProperty(false);
|
|
}
|
|
|
|
public HotkeySettings ActivationShortcut { get; set; }
|
|
|
|
public BoolProperty AlwaysRunNotElevated { get; set; }
|
|
|
|
public BoolProperty CloseAfterLosingFocus { get; set; }
|
|
|
|
public override string ToString() => JsonSerializer.Serialize(this);
|
|
}
|
|
}
|