From fa27d993e2882fc0c35f4b6b1806aa1e08675fe6 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Wed, 15 Feb 2023 23:54:01 +0100 Subject: [PATCH] Don't complete emojis when typing uppercase letters BUG: 463049 --- src/models/completionmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/completionmodel.cpp b/src/models/completionmodel.cpp index 5191920e3..fc4408155 100644 --- a/src/models/completionmodel.cpp +++ b/src/models/completionmodel.cpp @@ -145,7 +145,7 @@ void CompletionModel::updateCompletion() m_filterModel->setFullText(m_fullText); m_filterModel->setFilterText(m_text); m_filterModel->invalidate(); - } else if (text().startsWith(QLatin1Char(':')) + } else if (text().startsWith(QLatin1Char(':')) && !text()[1].isUpper() && (m_fullText.indexOf(QLatin1Char(':'), 1) == -1 || (m_fullText.indexOf(QLatin1Char(' ')) != -1 && m_fullText.indexOf(QLatin1Char(':'), 1) > m_fullText.indexOf(QLatin1Char(' '), 1)))) { m_filterModel->setSourceModel(m_emojiModel);