[QuickAccent]Add setting to sort characters by use frequency (#22847)

* [Quick Accent] add toggle switch to sort characters by usage frequency

* [Quick Accent] if enabled, then sort by frequency for all toolbar triggers

* [Quick Accent] add "start selection from the left" toggle switch

* [Quick Accent] fix error SA1000: The keyword 'new' should not be followed by a space

* Fix C# analyzer build error
This commit is contained in:
Taras
2023-01-03 14:44:57 +02:00
committed by GitHub
parent b1c535a2ce
commit 14ad19e1e3
7 changed files with 178 additions and 3 deletions

View File

@@ -27,6 +27,12 @@ namespace Microsoft.PowerToys.Settings.UI.Library
[JsonPropertyName("show_description")]
public bool ShowUnicodeDescription { get; set; }
[JsonPropertyName("sort_by_usage_frequency")]
public bool SortByUsageFrequency { get; set; }
[JsonPropertyName("start_selection_from_the_left")]
public bool StartSelectionFromTheLeft { get; set; }
public PowerAccentProperties()
{
ActivationKey = PowerAccentActivationKey.Both;
@@ -35,6 +41,8 @@ namespace Microsoft.PowerToys.Settings.UI.Library
SelectedLang = "ALL";
ExcludedApps = new StringProperty();
ShowUnicodeDescription = false;
SortByUsageFrequency = false;
StartSelectionFromTheLeft = false;
}
}
}