From 6e5f390994bb96c89e0799662e526129e1e062bd Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Tue, 7 Sep 2021 03:24:31 +0800 Subject: [PATCH] c3 keyboard: fix button status not updated (#22127) old-commit-hash: e284f515b9842a761f2b15b8d2b466d59c722e24 --- selfdrive/ui/qt/widgets/keyboard.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/selfdrive/ui/qt/widgets/keyboard.cc b/selfdrive/ui/qt/widgets/keyboard.cc index 11b22d35c0..e6e60e4097 100644 --- a/selfdrive/ui/qt/widgets/keyboard.cc +++ b/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; } }