summaryrefslogtreecommitdiffstats
path: root/src/shared/qwaylandxkb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/qwaylandxkb.cpp')
-rw-r--r--src/shared/qwaylandxkb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/qwaylandxkb.cpp b/src/shared/qwaylandxkb.cpp
index 3cfc4b07..2dff8a5b 100644
--- a/src/shared/qwaylandxkb.cpp
+++ b/src/shared/qwaylandxkb.cpp
@@ -376,7 +376,7 @@ QVector<xkb_keysym_t> QWaylandXkb::toKeysym(QKeyEvent *event)
keysyms.append(XKB_KEY_KP_0 + (event->key() - Qt::Key_0));
else
keysyms.append(toKeysymFromTable(event->key()));
- } else if (!event->text().isEmpty()) {
+ } else if (!event->text().isEmpty() && event->key() != Qt::Key_Return) {
// From libxkbcommon keysym-utf.c:
// "We allow to represent any UCS character in the range U-00000000 to
// U-00FFFFFF by a keysym value in the range 0x01000000 to 0x01ffffff."