Skip to content
Snippets Groups Projects
Commit f02342fe authored by Jedi18's avatar Jedi18
Browse files

close emoji autocompleter if space typed after : issue #433 and adds default...

close emoji autocompleter if space typed after : issue #433 and adds default option for emoji font family settings
parent e0207ff3
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment