mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-05 14:28:40 +01:00
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…
Reference in New Issue
Block a user