diff --git a/src/SamplesApp/SamplesApp.UnitTests.Shared/Controls/UITests/Presentation/SampleChooserViewModel.cs b/src/SamplesApp/SamplesApp.UnitTests.Shared/Controls/UITests/Presentation/SampleChooserViewModel.cs index 7ef01c60dc5a..f081e64b4720 100644 --- a/src/SamplesApp/SamplesApp.UnitTests.Shared/Controls/UITests/Presentation/SampleChooserViewModel.cs +++ b/src/SamplesApp/SamplesApp.UnitTests.Shared/Controls/UITests/Presentation/SampleChooserViewModel.cs @@ -620,6 +620,13 @@ private List UpdateSearch(string search, List /// This method is used to get the list of samplechoosercontent that is present in the settings. diff --git a/src/SamplesApp/SamplesApp.UnitTests.Shared/Controls/UITests/Views/Controls/SampleChooserControl.xaml b/src/SamplesApp/SamplesApp.UnitTests.Shared/Controls/UITests/Views/Controls/SampleChooserControl.xaml index e92758ae8142..b4186fc45669 100644 --- a/src/SamplesApp/SamplesApp.UnitTests.Shared/Controls/UITests/Views/Controls/SampleChooserControl.xaml +++ b/src/SamplesApp/SamplesApp.UnitTests.Shared/Controls/UITests/Views/Controls/SampleChooserControl.xaml @@ -183,6 +183,7 @@ diff --git a/src/SamplesApp/SamplesApp.UnitTests.Shared/Controls/UITests/Views/Controls/SampleChooserControl.xaml.cs b/src/SamplesApp/SamplesApp.UnitTests.Shared/Controls/UITests/Views/Controls/SampleChooserControl.xaml.cs index 9ea778bc8a67..464596c4bbec 100644 --- a/src/SamplesApp/SamplesApp.UnitTests.Shared/Controls/UITests/Views/Controls/SampleChooserControl.xaml.cs +++ b/src/SamplesApp/SamplesApp.UnitTests.Shared/Controls/UITests/Views/Controls/SampleChooserControl.xaml.cs @@ -7,6 +7,8 @@ using Windows.Foundation; using Windows.UI.Xaml; using Microsoft.VisualStudio.TestTools.UnitTesting; +using Windows.UI.Xaml.Input; + #if NETFX_CORE using Windows.Foundation.Collections; using Windows.UI.Xaml.Controls; @@ -53,5 +55,13 @@ protected override Size ArrangeOverride(Size availableSize) } return base.ArrangeOverride(availableSize); } + + private void OnSearchEnterKey_KeyDown(object sender, KeyRoutedEventArgs e) + { + if (e.Key == Windows.System.VirtualKey.Enter) + { + (DataContext as SampleChooserViewModel).TryOpenSample(); + } + } } }