Commit aab4198c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix insert text

parent c547a568
......@@ -91,7 +91,11 @@ bool QuickTextPluginEditorInterface::processProcessKeyEvent(QKeyEvent *e)
//qDebug() << "selected " << selectedWord;
for (const MailCommon::SnippetsInfo &info : mSnippetsInfo) {
//qDebug() << " info.keyword" << info.keyword;
if (info.keyword == selectedWord) {
QString infoKeyword = info.keyword;
if (!infoKeyword.startsWith(QLatin1Char('\\'))) {
infoKeyword = QLatin1Char('\\') + infoKeyword;
}
if (infoKeyword == selectedWord) {
qDebug() << "found snippetsinfo " << info.keyword;
cur.insertText(composerInterface()->convertText(info.text));
//TODO change pos cur.setPosition(position);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment