diff --git a/src/Gui/QuantitySpinBox.cpp b/src/Gui/QuantitySpinBox.cpp index e0d8d583f2..697bdc287e 100644 --- a/src/Gui/QuantitySpinBox.cpp +++ b/src/Gui/QuantitySpinBox.cpp @@ -394,7 +394,7 @@ void QuantitySpinBox::resizeEvent(QResizeEvent * event) void Gui::QuantitySpinBox::keyPressEvent(QKeyEvent *event) { - if (event->key() == Qt::Key_Equal && isBound()) + if (event->text() == QString::fromUtf8("=") && isBound()) openFormulaDialog(); else { if (!hasExpression())