Commit b4cfd74a authored by Stefan Kobza's avatar Stefan Kobza

Delete key triggers Delete Script button.

parent e34fa543
......@@ -2990,6 +2990,15 @@ void RenderWidget::keyPressEvent(QKeyEvent *e)
}
break;
}
} else if (e->key() == Qt::Key_Delete) {
// If in Scripts tab, let Del key invoke DeleteScript
if (m_view.tabWidget->currentIndex() == 2) {
if (m_view.delete_script->isEnabled()) {
slotDeleteScript();
}
} else {
QDialog::keyPressEvent(e);
}
} else {
QDialog::keyPressEvent(e);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment