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:
parent
ee8dff3c99
commit
98dd492f75
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue