Skip to content

Commit

Permalink
Update QuantitySpinBox.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
PaddleStroke authored Mar 10, 2025
1 parent 844cceb commit 14bc81c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/Gui/QuantitySpinBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,13 +407,6 @@ void QuantitySpinBox::resizeEvent(QResizeEvent * event)

void Gui::QuantitySpinBox::keyPressEvent(QKeyEvent* event)
{
const auto isEnter = event->key() == Qt::Key_Enter || event->key() == Qt::Key_Return;

if (isEnter && !isNormalized()) {
normalize();
return;
}

if (!handleKeyEvent(event->text())) {
QAbstractSpinBox::keyPressEvent(event);
}
Expand Down

0 comments on commit 14bc81c

Please sign in to comment.