summary refs log tree commit diff
path: root/resources/qml/MessageInput.qml
diff options
context:
space:
mode:
authorJedi18 <targetakhil@gmail.com>2021-02-05 21:52:49 +0530
committerJedi18 <targetakhil@gmail.com>2021-02-05 21:52:49 +0530
commitf02342fe227c6ab05e94d6ac72d05dd0b6f127a2 (patch)
tree9d544aec2948635d93cc9eca08d1c1b90b4e830a /resources/qml/MessageInput.qml
parentMerge pull request #445 from Jedi18/avatar_username_feature (diff)
downloadnheko-f02342fe227c6ab05e94d6ac72d05dd0b6f127a2.tar.xz
close emoji autocompleter if space typed after : issue #433 and adds default option for emoji font family settings
Diffstat (limited to 'resources/qml/MessageInput.qml')
-rw-r--r--resources/qml/MessageInput.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/resources/qml/MessageInput.qml b/resources/qml/MessageInput.qml
index 5d335872..5a9cfd33 100644
--- a/resources/qml/MessageInput.qml
+++ b/resources/qml/MessageInput.qml
@@ -163,6 +163,10 @@ Rectangle {
                         TimelineManager.timeline.input.paste(false);
                         event.accepted = true;
                     } else if (event.key == Qt.Key_Space) {
+                        // close popup if user enters space after colon
+                        if(cursorPosition == completerTriggeredAt + 1)
+                            popup.close();
+
                         if (popup.opened && popup.count <= 0)
                             popup.close();