nheko
nheko copied to clipboard
Pressing Enter won't send
Describe the bug
Pressing enter always does a line break, will not send message. I am on Fedora 37, KDE Plasma 5.27.4, on a Samsung Galaxy Book2 360, a touch screen laptop.
I have a desktop on the same OS and desktop environment, which does not have the same issue. I have reinstalled Nheko (through DNF) and removed all config files and cache, to no avail.
I have tried toggling the settings for pressing enter for new line/send, as well as the touchscreen mode setting, but same behavior.
To Reproduce
Type message, press enter. Only a new line has been created.
What happened?
No response
Expected behavior
No response
Screenshots
No response
Version
0.11.3
Operating system
Linux
Installation method
Some repository (AUR, homebrew, distribution repository, PPA, etc)
Qt version
5.15.9
C++ compiler
No response
Desktop Environment
KDE Plasma 5.27.4
Did you use profiles?
- [ ] Profiles used?
Relevant log output
No response
Backtrace
No response
Just adding that I have the same issue under arch on a Lenovo X13 Yoga, running plasma 5.27.8.
also experiencing this on a Dell Inspiron 14 2-in-1 running arch linux with plasma 5.27.10, but am not experiencing this on a PC (custom built) running the same version of arch and plasma problem occurs both with and without touchscreen mode enabled, and also with enabling/disabling enter and shift+enter swap (so same things as original post)
cli output doesn't appear to show anything relevant, but here it is anyways just in case:
[2024-01-30 10:55:13.410] [ui] [info] Restoring window size 1066x600
[2024-01-30 10:55:13.425] [ui] [info] WebRTC: initialised GStreamer 1.22.8
[2024-01-30 10:55:13.477] [ui] [info] jdenticon plugin not found.
[2024-01-30 10:55:13.701] [ui] [info] starting nheko 0.11.3
[2024-01-30 10:55:13.708] [ui] [info] User already signed in, showing chat page
[2024-01-30 10:55:13.709] [ui] [info] Switching to chat page
[2024-01-30 10:55:13.758] [qml] [warning] qrc:/qml/TimelineView.qml:36:5: QML Shortcut: Shortcut: Only binding to one of multiple key bindings associated with 4. Use 'sequences: [ <key> ]' to bind to all of them. (qrc:/qml/TimelineView.qml:36, )
[2024-01-30 10:55:13.834] [qml] [warning] qrc:/qml/TopBar.qml:234:13: QML AbstractButton: Binding loop detected for property "implicitWidth" (qrc:/qml/TopBar.qml:234, )
[2024-01-30 10:55:13.834] [qml] [warning] qrc:/qml/TopBar.qml:241:30: QML EncryptionIndicator: Binding loop detected for property "sourceSize.height" (qrc:/qml/TopBar.qml:241, )
[2024-01-30 10:55:13.866] [ui] [info] Unity service available: true
[2024-01-30 10:55:13.876] [db] [info] database ready
[2024-01-30 10:55:13.876] [db] [info] restoring state from cache
[2024-01-30 10:55:13.895] [db] [info] Restored 79 rooms from cache
[2024-01-30 10:55:13.957] [db] [info] Invalidating self verification status
[2024-01-30 10:55:13.970] [crypto] [info] ed25519 : Kh82eXTqvSnvQYSfsVGG96a/J/ZmFBmRHOHCKsRleMY
[2024-01-30 10:55:13.970] [crypto] [info] curve25519: vBUdVF1Xp+EE2uWqNgqIFr7Yla/u/TZcNtvsfZmLO1c
[2024-01-30 10:55:14.343] [crypto] [info] Fetched server key count 50 signed_curve25519
[2024-01-30 10:55:14.394] [crypto] [info] No key for online key backup.
[2024-01-30 10:55:14.400] [db] [info] Invalidating self verification status
[2024-01-30 10:55:15.927] [net] [info] TURN server(s) retrieved from homeserver:
[2024-01-30 10:55:15.927] [net] [info] username:
[2024-01-30 10:55:15.927] [net] [info] ttl: 86400 seconds
[2024-01-30 10:55:17.876] [qml] [warning] qrc:/qml/ChatPage.qml:105:17: QML RoomList: Binding loop detected for property "implicitWidth" (qrc:/qml/ChatPage.qml:105, )
[2024-01-30 10:55:17.877] [qml] [warning] qrc:/qml/ChatPage.qml:105:17: QML RoomList: Binding loop detected for property "implicitWidth" (qrc:/qml/ChatPage.qml:105, )
[2024-01-30 10:55:19.399] [net] [info] Feching previews for children of !RtiKBai9A8dKYm3pxI:craftingcomrades.net
[2024-01-30 10:55:19.453] [net] [info] Feched previews for children of !RtiKBai9A8dKYm3pxI:craftingcomrades.net: 5
[2024-01-30 10:55:19.453] [net] [info] Feching previews for children of !RtiKBai9A8dKYm3pxI:craftingcomrades.net
[2024-01-30 10:55:19.492] [net] [info] Feched previews for children of !RtiKBai9A8dKYm3pxI:craftingcomrades.net: 0
[2024-01-30 10:55:21.592] [mtx] [info] Skipping rule with unknown condition type: event_property_contains
[2024-01-30 10:55:21.592] [mtx] [info] Skipping rule with unknown condition type: event_property_is
[2024-01-30 10:55:21.717] [qml] [warning] file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/ToolTip.qml:66:9: QML Label: Binding loop detected for property "verticalAlignment" (file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/ToolTip.qml:66, )
[2024-01-30 10:55:24.703] [qml] [warning] file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/ToolTip.qml:66:9: QML Label: Binding loop detected for property "verticalAlignment" (file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/ToolTip.qml:66, )
[2024-01-30 10:55:29.248] [net] [error] sync error: (connection: Operation was aborted by an application callback, parser: [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal [while parsing error]: )
[2024-01-30 10:55:29.400] [qml] [warning] Please call QDesktopServices::unsetUrlHandler() before destroying a registered URL handler object.
Support for destroying a registered URL handler object is deprecated, and will be removed in Qt 6.6. (:0, )
found a slight workaround, if I start nheko with the on screen virtual keyboard disabled (can do that by clicking the input method icon in the system tray), it lets me send messages by pressing enter
however, if i enable the keyboard and press any text field to bring it up (does not matter where, can even be a different app), i can no longer send messages by pressing enter
also should note, am using maliit-keyboard
as my virtual keyboard
edit: more testing, if i flick the keyboard down and press enter, it sends the message, but if i type another character, it creates a newline
was also looking at the qt bugtracker, seems like Qt.inputMethod.visible
has issues on Android, think they may be happening here as well: https://bugreports.qt.io/browse/QTBUG-53938?jql=text%20~%20%22Qt.inputMethod.visible%22
can confirm turning virtual keyboard off fixed the enter problem on plasma 6.0 !! is as simple as clikcing the keyboard button in the systray before u start nheko :3 (i ams also using maliit-keyboard
)
can confirm turning virtual keyboard off fixed the enter problem on plasma 6.0 !! is as simple as clikcing the keyboard button in the systray before u start nheko :3 (i ams also using
maliit-keyboard
)
OMG!!! Thank you thank you thank you! I was wondering why it was fine on my desktop with plasma 5.0, but not on my laptop with 6.0. And this was driving me bonkers!!! Thank you so much.
BTW for debugging I am NOT using maliit-keyboard. I must have hit some key combo or maybe it's a default upon upgrading to Plasma 6. But I found the keyboard icon in the systray and turned off the virtual keyboard and all worked as it should.