Skip to content

Commit 3236197

Browse files
committed
Add delay to search box input
This adds a delay of 400ms to the search boxes in the test explorer, the inspection results window and the CE. This means that a somewhat below average typer with a typing speed of 150cpm will just not trigger a UI refresh while typing. In particular in the CE, the delay is considerably shorter than the refresh time for the filter change.
1 parent 69bfff3 commit 3236197

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Rubberduck.Core/UI/CodeExplorer/CodeExplorerControl.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@
385385
Padding="2">
386386
<controls:SearchBox x:Name="SearchBox"
387387
Background="{x:Static SystemColors.WindowBrush}"
388-
Text="{Binding Search, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
388+
Text="{Binding Search, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Delay=400}"
389389
Hint="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI,
390390
Key=CodeExplorer_SearchPlaceholder}"
391391
Grid.Column="0"

Rubberduck.Core/UI/Inspections/InspectionResultsControl.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
<Label Content="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=GroupingGrid_Filter}" VerticalContentAlignment="Center" />
137137

138138
<controls:SearchBox Width="100"
139-
Text="{Binding InspectionDescriptionFilter, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
139+
Text="{Binding InspectionDescriptionFilter, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Delay=400}" />
140140

141141
<Label Content="{Resx ResxName=Rubberduck.Resources.Inspections.InspectionsUI ,Key=CodeInspection_SeverityFilter}" />
142142

Rubberduck.Core/UI/UnitTesting/TestExplorerControl.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@
208208

209209
<Label Content="{Resx Key=TestExplorer_Filter, ResxName=Rubberduck.Resources.UnitTesting.TestExplorer}" />
210210
<controls:SearchBox Width="100"
211-
Text="{Binding TestNameFilter, Mode=OneWayToSource, UpdateSourceTrigger=PropertyChanged}" />
211+
Text="{Binding TestNameFilter, Mode=OneWayToSource, UpdateSourceTrigger=PropertyChanged, Delay=400}" />
212212

213213
<Label Content="{Resx Key=TestExplorer_Outcome, ResxName=Rubberduck.Resources.UnitTesting.TestExplorer}" />
214214
<ToggleButton Style="{StaticResource ToolBarToggleStyle}"

0 commit comments

Comments
 (0)