From 672d00be05aadc9d6d98927934629a1ebd150405 Mon Sep 17 00:00:00 2001 From: Grace Dolphy Date: Thu, 30 Mar 2017 13:02:49 -0400 Subject: [PATCH] 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) --- src/ui/mainwindow.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/ui/mainwindow.cpp b/src/ui/mainwindow.cpp index 4f3b267a9..00206e33d 100644 --- a/src/ui/mainwindow.cpp +++ b/src/ui/mainwindow.cpp @@ -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); }