/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/settings-ui/Settings.UI.Library/KeyboardManagerProperties.cs
43 строки
1 KB
Niels Laute
[KBM] Enable new editor by default (#48245)
02 июн 2026, 09:57
Не верифицирован
02 июн 2026, 09:57
a33fd3c
Код
Авторство
О чём код?
// 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<string> ActiveConfiguration { get; set; } // List of all Keyboard Configurations. [JsonPropertyName("keyboardConfigurations")] [CmdConfigureIgnoreAttribute] public GenericProperty<List<string>> KeyboardConfigurations { get; set; } public HotkeySettings DefaultEditorShortcut => new HotkeySettings(true, false, false, true, 0x51); public KeyboardManagerProperties() { EditorShortcut = DefaultEditorShortcut; KeyboardConfigurations = new GenericProperty<List<string>>(new List<string> { "default", }); ActiveConfiguration = new GenericProperty<string>("default"); } public HotkeySettings EditorShortcut { get; set; } [JsonPropertyName("useNewEditor")] public bool UseNewEditor { get; set; } = true; public string ToJsonString() { return JsonSerializer.Serialize(this); } } }