1 files changed, 3 insertions, 5 deletions
diff --git a/src/TextInputWidget.cpp b/src/TextInputWidget.cpp
index b4251a0e..dc41b4d3 100644
--- a/src/TextInputWidget.cpp
+++ b/src/TextInputWidget.cpp
@@ -76,7 +76,7 @@ FilteredTextEdit::FilteredTextEdit(QWidget *parent)
&FilteredTextEdit::uploadData);
connect(this, &FilteredTextEdit::resultsRetrieved, this, &FilteredTextEdit::showResults);
- connect(&replyPopup_, &ReplyPopup::userSelected, this, [this](const QString &text) {
+ connect(&replyPopup_, &ReplyPopup::userSelected, this, [](const QString &text) {
// TODO: Show user avatar window.
nhlog::ui()->info("User selected: " + text.toStdString());
});
@@ -176,18 +176,16 @@ FilteredTextEdit::keyPressEvent(QKeyEvent *event)
}
if (replyPopup_.isVisible()) {
- switch (event->key())
- {
+ switch (event->key()) {
case Qt::Key_Escape:
closeReply();
return;
-
+
default:
break;
}
}
-
switch (event->key()) {
case Qt::Key_At:
atTriggerPosition_ = textCursor().position();
|