Commit b4cfd74a authored by Stefan Kobza's avatar Stefan Kobza
Browse files

Delete key triggers Delete Script button.

parent e34fa543
...@@ -2990,6 +2990,15 @@ void RenderWidget::keyPressEvent(QKeyEvent *e) ...@@ -2990,6 +2990,15 @@ void RenderWidget::keyPressEvent(QKeyEvent *e)
} }
break; 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 { } else {
QDialog::keyPressEvent(e); 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