keyboard: backspace key repeat (#21395)

old-commit-hash: 6402edb898
commatwo_master
sshane 4 years ago committed by GitHub
parent 34ca4a1a29
commit e2eddf74ee
  1. 3
      selfdrive/ui/qt/widgets/keyboard.cc

@ -27,6 +27,9 @@ KeyboardLayout::KeyboardLayout(QWidget* parent, const std::vector<QVector<QStrin
for (const QString &p : s) {
QPushButton* btn = new QPushButton(p);
if (p == QString("")) {
btn->setAutoRepeat(true);
}
btn->setFixedHeight(135);
btn_group->addButton(btn);
hlayout->addWidget(btn, p == QString(" ") ? SPACEBAR_STRETCH : DEFAULT_STRETCH);

Loading…
Cancel
Save