// 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.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; using Settings.UI.Library.Attributes; namespace Microsoft.PowerToys.Settings.UI.Library { public class KeyboardManagerProperties { [JsonPropertyName("activeConfiguration")] [CmdConfigureIgnoreAttribute] public GenericProperty ActiveConfiguration { get; set; } // List of all Keyboard Configurations. [JsonPropertyName("keyboardConfigurations")] [CmdConfigureIgnoreAttribute] public GenericProperty> KeyboardConfigurations { get; set; } public HotkeySettings DefaultToggleShortcut => new HotkeySettings(true, false, false, true, 0x4B); public KeyboardManagerProperties() { ToggleShortcut = DefaultToggleShortcut; KeyboardConfigurations = new GenericProperty>(new List { "default", }); ActiveConfiguration = new GenericProperty("default"); } public HotkeySettings ToggleShortcut { get; set; } public string ToJsonString() { return JsonSerializer.Serialize(this); } } }