[Quick Accent]Increase default input delay to 300ms (#22680)

* [Quick Accent] change default input delay and default activation key

* [Quick Accent] use default activation key 'Both' as before

* [Quick Accent] use PowerAccentSettings.DefaultInputTimeMs

* [Quick Accent] add more comments
This commit is contained in:
Taras 2022-12-13 19:15:56 +02:00 committed by GitHub
parent ba0d41f743
commit f987a48b3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 4 deletions

View File

@ -134,7 +134,7 @@ public class SettingsService
}
}
private int _inputTime = 200;
private int _inputTime = PowerAccentSettings.DefaultInputTimeMs;
public int InputTime
{

View File

@ -16,7 +16,7 @@ namespace winrt::PowerToys::PowerAccentKeyboardService::implementation
struct PowerAccentSettings
{
PowerAccentActivationKey activationKey{ PowerAccentActivationKey::Both };
std::chrono::milliseconds inputTime{ 200 };
std::chrono::milliseconds inputTime{ 300 }; // Should match with UI.Library.PowerAccentSettings.DefaultInputTimeMs
std::vector<std::wstring> excludedApps;
};

View File

@ -31,7 +31,7 @@ namespace Microsoft.PowerToys.Settings.UI.Library
{
ActivationKey = PowerAccentActivationKey.Both;
ToolbarPosition = "Top center";
InputTime = new IntProperty(200);
InputTime = new IntProperty(PowerAccentSettings.DefaultInputTimeMs);
SelectedLang = "ALL";
ExcludedApps = new StringProperty();
ShowUnicodeDescription = false;

View File

@ -11,6 +11,7 @@ namespace Microsoft.PowerToys.Settings.UI.Library
{
public const string ModuleName = "QuickAccent";
public const string ModuleVersion = "0.0.1";
public const int DefaultInputTimeMs = 300; // PowerAccentKeyboardService.PowerAccentSettings.inputTime should be the same
[JsonPropertyName("properties")]
public PowerAccentProperties Properties { get; set; }

View File

@ -155,7 +155,7 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
}
}
private int _inputTimeMs = 200;
private int _inputTimeMs = PowerAccentSettings.DefaultInputTimeMs;
public int InputTimeMs
{