PowerOcrProperties.cs
1 // Copyright (c) Microsoft Corporation 2 // The Microsoft Corporation licenses this file to you under the MIT license. 3 // See the LICENSE file in the project root for more information. 4 5 using System.Text.Json; 6 7 using Settings.UI.Library.Attributes; 8 9 namespace Microsoft.PowerToys.Settings.UI.Library 10 { 11 public class PowerOcrProperties 12 { 13 [CmdConfigureIgnore] 14 public HotkeySettings DefaultActivationShortcut => new HotkeySettings(true, false, false, true, 0x54); // Win+Shift+T 15 16 public PowerOcrProperties() 17 { 18 ActivationShortcut = DefaultActivationShortcut; 19 PreferredLanguage = string.Empty; 20 } 21 22 public HotkeySettings ActivationShortcut { get; set; } 23 24 public string PreferredLanguage { get; set; } 25 26 public override string ToString() 27 => JsonSerializer.Serialize(this, SettingsSerializationContext.Default.PowerOcrProperties); 28 } 29 }