- if (anIsModified)
- myProcessedEvent = theEvent;
- /*qDebug("ModuleBase_DoubleSpinBox::keyPressEvent");
- if (anIsModified) // we should not perform this event outside
- theEvent->setAccepted(true);
- else
- theEvent->setAccepted(false);*/
+ // the enter has already been processed when key is pressed,
+ // key release should not be processed in operation manager
+ if (myIsEmitKeyPressEvent) {
+ theEvent->accept();
+ emit enterReleased();
+ return;
+ }