forked from qt-creator/qt-creator
QmlDesigner: allow aborting drag and drop with Escape
Also allows aborting the move tool. Reviewed-by: Marco Bubke Task-number: QTCREATORBUG-4322
This commit is contained in:
@@ -170,7 +170,10 @@ void MoveTool::keyPressEvent(QKeyEvent *event)
|
||||
case Qt::Key_Down: m_moveManipulator.moveBy(0.0, moveStep); break;
|
||||
}
|
||||
|
||||
|
||||
if (event->key() == Qt::Key_Escape && !m_movingItems.isEmpty()) {
|
||||
event->accept();
|
||||
view()->changeToSelectionTool();
|
||||
}
|
||||
}
|
||||
|
||||
void MoveTool::keyReleaseEvent(QKeyEvent *keyEvent)
|
||||
|
||||
Reference in New Issue
Block a user