diff --git a/selfdrive/ui/qt/widgets/keyboard.cc b/selfdrive/ui/qt/widgets/keyboard.cc index f85d37f6f0..c0257ca9d3 100644 --- a/selfdrive/ui/qt/widgets/keyboard.cc +++ b/selfdrive/ui/qt/widgets/keyboard.cc @@ -5,7 +5,6 @@ #include #include #include -#include const QString BACKSPACE_KEY = "⌫"; const QString ENTER_KEY = "→"; @@ -122,8 +121,12 @@ void Keyboard::handleButton(QAbstractButton* btn) { if (index != -1) { main_layout->setCurrentIndex(index); } - if (key == ENTER_KEY) emit emitEnter(); - if (key == BACKSPACE_KEY) emit emitBackspace(); + if (key == ENTER_KEY) { + emit emitEnter(); + } + if (key == BACKSPACE_KEY) { + emit emitBackspace(); + } } else { if ("A" <= key && key <= "Z") {