From 89548932a60742a1ecd11ea5a07b14ac0dcfd9db Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Thu, 7 Sep 2023 17:55:02 +0000 Subject: [PATCH] Fix remote keyboard sending "space" when pressing space I believe this was broken in https://invent.kde.org/network/kdeconnect-kde/-/merge_requests/543 BUG: 473956 --- plugins/remotekeyboard/remotekeyboardplugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/remotekeyboard/remotekeyboardplugin.cpp b/plugins/remotekeyboard/remotekeyboardplugin.cpp index 55beec80f..d0d6a631f 100644 --- a/plugins/remotekeyboard/remotekeyboardplugin.cpp +++ b/plugins/remotekeyboard/remotekeyboardplugin.cpp @@ -106,7 +106,7 @@ void RemoteKeyboardPlugin::sendQKeyEvent(const QVariantMap &keyEvent, bool sendA // https://xkbcommon.org/doc/current/group__keysyms.html // Instead, just use QKeySequence to tell us which key that is and move on QString text = keyEvent.value(QStringLiteral("text")).toString(); - if (!text.isEmpty() && !text[0].isLetterOrNumber()) { + if (!text.isEmpty() && !text[0].isLetterOrNumber() && text != QLatin1String(" ")) { text = QKeySequence(key).toString().toLower(); }