#include <ModuleBase_ModelWidget.h>
bool XGUI_OperationMgr::onKeyReleased(QKeyEvent* theEvent)
{
- qDebug("XGUI_OperationMgr::onKeyReleased");
QObject* aSender = sender();
// Let the manager decide what to do with the given key combination.
ModuleBase_Operation* aOperation = currentOperation();
ModuleBase_IPropertyPanel* aPanel = aOperation->propertyPanel();
ModuleBase_ModelWidget* aActiveWgt = aPanel->activeWidget();
- if (aActiveWgt && !aActiveWgt->isEventProcessed(theEvent)) {
- qDebug("XGUI_OperationMgr::onKeyReleased accept Enter");
+ if (!aActiveWgt || !aActiveWgt->isEventProcessed(theEvent)) {
ModuleBase_OperationFeature* aFOperation = dynamic_cast<ModuleBase_OperationFeature*>(currentOperation());
if (!aFOperation || myWorkshop->module()->getFeatureError(aFOperation->feature()).isEmpty()) {
emit keyEnterReleased();