c3 keyboard: fix button status not updated (#22127)

pull/22145/head
Dean Lee 4 years ago committed by GitHub
parent 8bca70878f
commit e284f515b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      selfdrive/ui/qt/widgets/keyboard.cc

@ -31,9 +31,7 @@ bool KeyButton::event(QEvent *event) {
QMouseEvent mouseEvent(mouseType, touchEvent->touchPoints().front().pos(), Qt::LeftButton, Qt::LeftButton, Qt::NoModifier);
QPushButton::event(&mouseEvent);
event->accept();
if (mouseType == QEvent::MouseButtonRelease) {
parentWidget()->update();
}
parentWidget()->update();
return true;
}
}

Loading…
Cancel
Save