From 28cf9e11d794a0ae4ad66c5a55969d3e746ad2eb Mon Sep 17 00:00:00 2001 From: David Sansome Date: Wed, 30 Dec 2009 14:31:04 +0000 Subject: [PATCH] Add backspace shortcut --- src/playlistview.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/playlistview.cpp b/src/playlistview.cpp index 2d23ee23e..820339333 100644 --- a/src/playlistview.cpp +++ b/src/playlistview.cpp @@ -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