Add backspace shortcut
This commit is contained in:
parent
d63001af02
commit
28cf9e11d7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user