Fixes the issue "Seek instead of navigation with arrow keys #5550". Now allows the leaf to be closed by arrow left at any point of the leaf, not only the parent, and if the library is focused and arrow keys are pressed and there is nothing to open or close, the request is ignored (no seek) (#5684)

This commit is contained in:
Grace Dolphy 2017-03-30 13:02:49 -04:00 committed by John Maguire
parent a5d12d0d10
commit 672d00be05
1 changed files with 0 additions and 6 deletions

View File

@ -2856,12 +2856,6 @@ void MainWindow::keyPressEvent(QKeyEvent* event) {
if (event->key() == Qt::Key_Space) {
app_->player()->PlayPause();
event->accept();
} else if (event->key() == Qt::Key_Left) {
app_->player()->SeekBackward();
event->accept();
} else if (event->key() == Qt::Key_Right) {
app_->player()->SeekForward();
event->accept();
} else {
QMainWindow::keyPressEvent(event);
}