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
(cherry picked from commit 89548932a6)
This commit is contained in:
Albert Vaca Cintora 2023-09-07 17:55:02 +00:00
parent ee8dff3c99
commit 98dd492f75

View file

@ -113,7 +113,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();
}