/ src / settings-ui / Settings.UI.Library / CropAndLockProperties.cs
CropAndLockProperties.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  using System.Text.Json.Serialization;
 7  
 8  namespace Microsoft.PowerToys.Settings.UI.Library
 9  {
10      public class CropAndLockProperties
11      {
12          public static readonly HotkeySettings DefaultReparentHotkeyValue = new HotkeySettings(true, true, false, true, 0x52); // Ctrl+Win+Shift+R
13          public static readonly HotkeySettings DefaultThumbnailHotkeyValue = new HotkeySettings(true, true, false, true, 0x54); // Ctrl+Win+Shift+T
14          public static readonly HotkeySettings DefaultScreenshotHotkeyValue = new HotkeySettings(true, true, false, true, 0x53); // Ctrl+Win+Shift+S
15  
16          public CropAndLockProperties()
17          {
18              ReparentHotkey = new KeyboardKeysProperty(DefaultReparentHotkeyValue);
19              ThumbnailHotkey = new KeyboardKeysProperty(DefaultThumbnailHotkeyValue);
20              ScreenshotHotkey = new KeyboardKeysProperty(DefaultScreenshotHotkeyValue);
21          }
22  
23          [JsonPropertyName("reparent-hotkey")]
24          public KeyboardKeysProperty ReparentHotkey { get; set; }
25  
26          [JsonPropertyName("thumbnail-hotkey")]
27          public KeyboardKeysProperty ThumbnailHotkey { get; set; }
28  
29          [JsonPropertyName("screenshot-hotkey")]
30          public KeyboardKeysProperty ScreenshotHotkey { get; set; }
31      }
32  }