Listen for keyPressEvent instead of keyReleaseEvent in the library view. Thanks arnaud.bienner. Fixes issue #1042
This commit is contained in:
parent
81f43ac4f5
commit
47c13c4479
|
@ -347,7 +347,7 @@ void LibraryView::CopyToDevice() {
|
|||
organise_dialog_->show();
|
||||
}
|
||||
|
||||
void LibraryView::keyReleaseEvent(QKeyEvent* e) {
|
||||
void LibraryView::keyPressEvent(QKeyEvent* e) {
|
||||
switch (e->key()) {
|
||||
case Qt::Key_Enter:
|
||||
case Qt::Key_Return:
|
||||
|
@ -356,7 +356,7 @@ void LibraryView::keyReleaseEvent(QKeyEvent* e) {
|
|||
break;
|
||||
}
|
||||
|
||||
QTreeView::keyReleaseEvent(e);
|
||||
QTreeView::keyPressEvent(e);
|
||||
}
|
||||
|
||||
void LibraryView::DeleteFinished(const SongList& songs_with_errors) {
|
||||
|
|
|
@ -74,7 +74,7 @@ class LibraryView : public AutoExpandingTreeView {
|
|||
void paintEvent(QPaintEvent* event);
|
||||
void mouseReleaseEvent(QMouseEvent* e);
|
||||
void contextMenuEvent(QContextMenuEvent* e);
|
||||
void keyReleaseEvent(QKeyEvent* e);
|
||||
void keyPressEvent(QKeyEvent* e);
|
||||
|
||||
private slots:
|
||||
void Load();
|
||||
|
|
Loading…
Reference in New Issue