Add backspace shortcut

This commit is contained in:
David Sansome 2009-12-30 14:31:04 +00:00
parent d63001af02
commit 28cf9e11d7
1 changed files with 2 additions and 1 deletions

View File

@ -298,7 +298,8 @@ bool CompareSelectionRanges(const QItemSelectionRange& a, const QItemSelectionRa
}
void PlaylistView::keyPressEvent(QKeyEvent* event) {
if (model() && event->matches(QKeySequence::Delete)) {
if (model() && (event->matches(QKeySequence::Delete) ||
event->key() == Qt::Key_Backspace)) {
QItemSelection selection(selectionModel()->selection());
// Sort the selection so we remove the items at the *bottom* first, ensuring