TaskImage: Fix enter doesn't work.

This commit is contained in:
Paddle
2023-04-12 15:55:45 +02:00
parent 246014dddd
commit 82ee6c0ab9

View File

@@ -646,7 +646,7 @@ void InteractiveScale::soEventFilter(void* ud, SoEventCallback* ecb)
bool InteractiveScale::eventFilter(QObject* object, QEvent* event)
{
if (event->type() == QEvent::KeyPress) {
if (event->type() == QEvent::KeyRelease) {
QKeyEvent* keyEvent = static_cast<QKeyEvent*>(event);
/* If user press enter in the spinbox, then we validate the tool.*/