Don't hijack the Enter key in the Browse Data tab

This commit is contained in:
Justin Clift
2016-07-20 20:38:36 +01:00
parent 2bcc603839
commit e5dfefb021

View File

@@ -206,10 +206,6 @@ void ExtendedTableWidget::keyPressEvent(QKeyEvent* event)
foreach(const QModelIndex& index, selectedIndexes())
model()->setData(index, "");
}
} else if(event->key() == Qt::Key_Return && selectedIndexes().count() == 1 && state() != QTableView::EditingState) {
// When hitting the return key simulate a double click. This way you can change the focus to the editor dock when pressing the
// return key for advanced editing, just like a double click would open the edit dialog
emit doubleClicked(selectedIndexes().at(0));
}
// This prevents the current selection from being changed when pressing tab to move to the next filter. Note that this is in an 'if' condition,