mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-06-11 12:14:53 +08:00
[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:
parent
ba0d41f743
commit
f987a48b3a
@ -134,7 +134,7 @@ public class SettingsService
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private int _inputTime = 200;
|
private int _inputTime = PowerAccentSettings.DefaultInputTimeMs;
|
||||||
|
|
||||||
public int InputTime
|
public int InputTime
|
||||||
{
|
{
|
||||||
|
@ -16,7 +16,7 @@ namespace winrt::PowerToys::PowerAccentKeyboardService::implementation
|
|||||||
struct PowerAccentSettings
|
struct PowerAccentSettings
|
||||||
{
|
{
|
||||||
PowerAccentActivationKey activationKey{ PowerAccentActivationKey::Both };
|
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;
|
std::vector<std::wstring> excludedApps;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ namespace Microsoft.PowerToys.Settings.UI.Library
|
|||||||
{
|
{
|
||||||
ActivationKey = PowerAccentActivationKey.Both;
|
ActivationKey = PowerAccentActivationKey.Both;
|
||||||
ToolbarPosition = "Top center";
|
ToolbarPosition = "Top center";
|
||||||
InputTime = new IntProperty(200);
|
InputTime = new IntProperty(PowerAccentSettings.DefaultInputTimeMs);
|
||||||
SelectedLang = "ALL";
|
SelectedLang = "ALL";
|
||||||
ExcludedApps = new StringProperty();
|
ExcludedApps = new StringProperty();
|
||||||
ShowUnicodeDescription = false;
|
ShowUnicodeDescription = false;
|
||||||
|
@ -11,6 +11,7 @@ namespace Microsoft.PowerToys.Settings.UI.Library
|
|||||||
{
|
{
|
||||||
public const string ModuleName = "QuickAccent";
|
public const string ModuleName = "QuickAccent";
|
||||||
public const string ModuleVersion = "0.0.1";
|
public const string ModuleVersion = "0.0.1";
|
||||||
|
public const int DefaultInputTimeMs = 300; // PowerAccentKeyboardService.PowerAccentSettings.inputTime should be the same
|
||||||
|
|
||||||
[JsonPropertyName("properties")]
|
[JsonPropertyName("properties")]
|
||||||
public PowerAccentProperties Properties { get; set; }
|
public PowerAccentProperties Properties { get; set; }
|
||||||
|
@ -155,7 +155,7 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private int _inputTimeMs = 200;
|
private int _inputTimeMs = PowerAccentSettings.DefaultInputTimeMs;
|
||||||
|
|
||||||
public int InputTimeMs
|
public int InputTimeMs
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user