/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/settings-ui/Settings.UI.Library/AltWindowCycleProperties.cs
47 строк
2 KB
Clint Rutkas
New module: AltWindowCycle (#48281)
31 июл 2026, 08:42
Не верифицирован
31 июл 2026, 08:42
bb99c30
Код
Авторство
О чём код?
// 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.Serialization; using Settings.UI.Library.Attributes; namespace Microsoft.PowerToys.Settings.UI.Library { public class AltWindowCycleProperties { // Alt+` cycles to the next window of the focused app. [JsonIgnore] [CmdConfigureIgnore] public HotkeySettings DefaultNextWindowShortcut => new HotkeySettings(false, false, true, false, 0xC0); // Shift+Alt+` cycles to the previous window of the focused app. [JsonIgnore] [CmdConfigureIgnore] public HotkeySettings DefaultPreviousWindowShortcut => new HotkeySettings(false, false, true, true, 0xC0); private HotkeySettings _nextWindowShortcut; private HotkeySettings _previousWindowShortcut; [JsonPropertyName("next_window_shortcut")] public HotkeySettings NextWindowShortcut { get => _nextWindowShortcut ?? DefaultNextWindowShortcut; set => _nextWindowShortcut = value; } [JsonPropertyName("previous_window_shortcut")] public HotkeySettings PreviousWindowShortcut { get => _previousWindowShortcut ?? DefaultPreviousWindowShortcut; set => _previousWindowShortcut = value; } public AltWindowCycleProperties() { NextWindowShortcut = DefaultNextWindowShortcut; PreviousWindowShortcut = DefaultPreviousWindowShortcut; } } }