1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-31 11:35:24 +01:00

Make backspace delete in playlist view on Mac.

Fixes issue #1710
This commit is contained in:
John Maguire 2011-05-26 14:34:22 +00:00
parent 5f7b085f12
commit 8880b06833

View File

@ -436,6 +436,11 @@ void PlaylistView::keyPressEvent(QKeyEvent* event) {
} else if (event->matches(QKeySequence::Delete)) {
RemoveSelected();
event->accept();
#ifdef Q_OS_DARWIN
} else if (event->key() == Qt::Key_Backspace) {
RemoveSelected();
event->accept();
#endif
} else if (event->key() == Qt::Key_Enter ||
event->key() == Qt::Key_Return) {
if (currentIndex().isValid())