diff options
author | Jedi18 <targetakhil@gmail.com> | 2021-02-05 21:52:49 +0530 |
---|---|---|
committer | Jedi18 <targetakhil@gmail.com> | 2021-02-05 21:52:49 +0530 |
commit | f02342fe227c6ab05e94d6ac72d05dd0b6f127a2 (patch) | |
tree | 9d544aec2948635d93cc9eca08d1c1b90b4e830a /resources/qml/MessageInput.qml | |
parent | Merge pull request #445 from Jedi18/avatar_username_feature (diff) | |
download | nheko-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.qml | 4 |
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(); |