Sketcher: add option to disable leaving sketch with Esc button
This commit is contained in:
@@ -477,7 +477,7 @@ void TaskView::keyPressEvent(QKeyEvent* ke)
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (ke->key() == Qt::Key_Escape) {
|
||||
else if (ke->key() == Qt::Key_Escape && ActiveDialog->isEscapeButtonEnabled()) {
|
||||
// get only the buttons of the button box
|
||||
QDialogButtonBox* box = ActiveCtrl->standardButtons();
|
||||
QList<QAbstractButton*> list = box->buttons();
|
||||
|
||||
Reference in New Issue
Block a user