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
This commit is contained in:
Albert Vaca Cintora 2023-09-07 17:55:02 +00:00
parent 04ae5c67f7
commit 89548932a6

View file

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