From 647a7acd0fd6130ddb5ebf194ecd5c87b955d573 Mon Sep 17 00:00:00 2001 From: Sebastien Pouliot Date: Mon, 4 Nov 2024 13:46:53 -0500 Subject: [PATCH] fix(tests): Fix When_Paste_While_Pointer_Held on macOS/skia --- .../Tests/Windows_UI_Xaml_Controls/Given_TextBox.skia.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_TextBox.skia.cs b/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_TextBox.skia.cs index 42862cbef013..0416e472139f 100644 --- a/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_TextBox.skia.cs +++ b/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_TextBox.skia.cs @@ -1494,7 +1494,7 @@ public async Task When_Paste_While_Pointer_Held() Assert.AreEqual(1, SUT.SelectionStart); Assert.AreEqual(9, SUT.SelectionLength); - SUT.SafeRaiseEvent(UIElement.KeyDownEvent, new KeyRoutedEventArgs(SUT, VirtualKey.V, VirtualKeyModifiers.Control)); + SUT.SafeRaiseEvent(UIElement.KeyDownEvent, new KeyRoutedEventArgs(SUT, VirtualKey.V, _platformCtrlKey)); await WindowHelper.WaitForIdle(); Assert.AreEqual("Hcopied contentd", SUT.Text);