diff options
author | Sateallia <mail@satealliasdomain.net> | 2023-05-23 22:56:48 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-05-23 22:56:48 +0200 |
commit | 5c64dd682c61690b765b21b7551f9bcded38191a (patch) | |
tree | fe1d5ed050b1c404268c172f7962bd31395d50c5 | |
parent | Allow editing stickers from stickerpicker (diff) | |
download | nheko-5c64dd682c61690b765b21b7551f9bcded38191a.tar.xz |
Workaround a WM bug that switches the focus incorrectly after initiating a search
-rw-r--r-- | resources/qml/TimelineView.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml index cd2aa158..af81e1f8 100644 --- a/resources/qml/TimelineView.qml +++ b/resources/qml/TimelineView.qml @@ -31,7 +31,7 @@ Item { // focus message input on key press, but not on Ctrl-C and such. Keys.onPressed: { - if (event.text && !topBar.searchHasFocus) { + if (event.text && event.key !== Qt.Key_Enter && event.key !== Qt.Key_Return && !topBar.searchHasFocus) { TimelineManager.focusMessageInput(); room.input.setText(room.input.text + event.text); } |