From 46674fdc29f0e48ccb022de9a70b962e32440d7b Mon Sep 17 00:00:00 2001 From: "Mengyuan Chen (from Dev Box)" Date: Thu, 17 Apr 2025 14:51:18 +0800 Subject: [PATCH] remove GetAsyncKeyState --- src/common/UITestAutomation/Element/Element.cs | 8 -------- src/common/UITestAutomation/UITestBase.cs | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/common/UITestAutomation/Element/Element.cs b/src/common/UITestAutomation/Element/Element.cs index 2c1258320a..82afb26d41 100644 --- a/src/common/UITestAutomation/Element/Element.cs +++ b/src/common/UITestAutomation/Element/Element.cs @@ -230,14 +230,6 @@ namespace Microsoft.PowerToys.UITest }); } - public void KeyUp(string key) - { - PerformAction((actions, windowElement) => - { - actions.KeyUp(key).Build().Perform(); - }); - } - /// /// Gets the attribute value of the UI element. /// diff --git a/src/common/UITestAutomation/UITestBase.cs b/src/common/UITestAutomation/UITestBase.cs index bc39f886e9..7a0370344d 100644 --- a/src/common/UITestAutomation/UITestBase.cs +++ b/src/common/UITestAutomation/UITestBase.cs @@ -538,7 +538,7 @@ namespace Microsoft.PowerToys.UITest } else { - Console.WriteLine("virtual monitor create Faild"); + Console.WriteLine("virtual monitor create failed"); } }