[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

@@ -92,6 +92,8 @@ public class SettingsService
}
ShowUnicodeDescription = settings.Properties.ShowUnicodeDescription;
SortByUsageFrequency = settings.Properties.SortByUsageFrequency;
StartSelectionFromTheLeft = settings.Properties.StartSelectionFromTheLeft;
}
}
catch (Exception ex)
@@ -191,6 +193,36 @@ public class SettingsService
_showUnicodeDescription = value;
}
}
private bool _sortByUsageFrequency;
public bool SortByUsageFrequency
{
get
{
return _sortByUsageFrequency;
}
set
{
_sortByUsageFrequency = value;
}
}
private bool _startSelectionFromTheLeft;
public bool StartSelectionFromTheLeft
{
get
{
return _startSelectionFromTheLeft;
}
set
{
_startSelectionFromTheLeft = value;
}
}
}
public enum Position