[QuickAccent]Add a setting for the menu delay time (#20221)

This commit is contained in:
Jaime Bernardo
2022-09-01 16:56:19 +01:00
committed by GitHub
parent 006165574e
commit 3f3e837c36
5 changed files with 52 additions and 2 deletions

View File

@@ -2328,7 +2328,17 @@ Activate by holding the key for the character you want to add an accent to, then
<data name="QuickAccent_ToolbarPosition_Right.Content" xml:space="preserve">
<value>Right</value>
</data>
<data name="LearnMore_TextExtractor.Text" xml:space="preserve">
<data name="QuickAccent_Behavior.Header" xml:space="preserve">
<value>Behavior</value>
</data>
<data name="QuickAccent_InputTimeMs.Header" xml:space="preserve">
<value>Input delay (ms)</value>
<comment>ms = milliseconds</comment>
</data>
<data name="QuickAccent_InputTimeMs.Description" xml:space="preserve">
<value>Hold the key for this long to make the accent menu appear (ms)</value>
<comment>ms = milliseconds</comment>
</data> <data name="LearnMore_TextExtractor.Text" xml:space="preserve">
<value>Learn more about Text Extractor</value>
</data>
<data name="TextExtractor.ModuleDescription" xml:space="preserve">

View File

@@ -55,7 +55,19 @@
</controls:Setting.ActionContent>
</controls:Setting>
</controls:SettingsGroup>
<controls:SettingsGroup x:Uid="QuickAccent_Behavior" IsEnabled="{Binding Mode=OneWay, Path=IsEnabled}">
<controls:Setting x:Uid="QuickAccent_InputTimeMs" Icon="&#xE916;">
<controls:Setting.ActionContent>
<muxc:NumberBox Minimum="100"
Value="{x:Bind Mode=TwoWay, Path=ViewModel.InputTimeMs}"
MinWidth="{StaticResource SettingActionControlMinWidth}"
SpinButtonPlacementMode="Compact"
HorizontalAlignment="Left"
SmallChange="10"
LargeChange="100"/>
</controls:Setting.ActionContent>
</controls:Setting>
</controls:SettingsGroup>
</StackPanel>
</controls:SettingsPageControl.ModuleContent>