From 7ca8f39cd820d2623e245b35ea1088da7ce26cc1 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Sun, 22 Sep 2024 23:49:28 +0000 Subject: [PATCH] autotests: Fix stuck A key in testInputMethod There's a press event but no matching release event. (cherry picked from commit de48120c2a39eaa4df03830b89e0ee792e2d2241) Co-authored-by: Vlad Zahorodnii --- autotests/integration/inputmethod_test.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autotests/integration/inputmethod_test.cpp b/autotests/integration/inputmethod_test.cpp index 46f8017b2f..54001706e8 100644 --- a/autotests/integration/inputmethod_test.cpp +++ b/autotests/integration/inputmethod_test.cpp @@ -664,6 +664,8 @@ void InputMethodTest::testModifierForwarding() shellSurface.reset(); QVERIFY(Test::waitForWindowClosed(window)); QVERIFY(!kwinApp()->inputMethod()->isActive()); + + Test::keyboardKeyReleased(KEY_A, timestamp++); } void InputMethodTest::testFakeEventFallback()