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 | |
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
-rw-r--r-- | resources/qml/MessageInput.qml | 4 | ||||
-rw-r--r-- | src/UserSettingsPage.cpp | 1 |
2 files changed, 5 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(); diff --git a/src/UserSettingsPage.cpp b/src/UserSettingsPage.cpp index 96c07d7c..5bff1323 100644 --- a/src/UserSettingsPage.cpp +++ b/src/UserSettingsPage.cpp @@ -725,6 +725,7 @@ UserSettingsPage::UserSettingsPage(QSharedPointer<UserSettings> settings, QWidge // TODO: Is there a way to limit to just emojis, rather than // all emoji fonts? auto emojiFamilies = fontDb.families(QFontDatabase::Symbol); + emojiFontSelectionCombo_->addItem(QString("default")); for (const auto &family : emojiFamilies) { emojiFontSelectionCombo_->addItem(family); } |