From a5ce798f282b6cf9e153bba89f9caea0cec37da0 Mon Sep 17 00:00:00 2001 From: Méven Car Date: Sat, 26 Oct 2019 12:53:04 +0200 Subject: When the selection is deselected, restart the keyboard search from the beginning Summary: BUG: 411538 FIXED-IN: 19.12 Test Plan: Open a directory with 3 files starting with the same letter. 1. Press this letter key twice 2. The second file is selected 3. Deselect the file with the mouse or using Esc 4. Wait 1 second 5. Press the same key again Before: The third file gets selected After: The first file get selected ctest Reviewers: #dolphin, elvisangelaccio, ngraham Reviewed By: #dolphin, elvisangelaccio, ngraham Subscribers: ngraham, kfm-devel Tags: #dolphin Differential Revision: https://phabricator.kde.org/D23716 --- src/kitemviews/private/kitemlistkeyboardsearchmanager.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/kitemviews/private/kitemlistkeyboardsearchmanager.h') diff --git a/src/kitemviews/private/kitemlistkeyboardsearchmanager.h b/src/kitemviews/private/kitemlistkeyboardsearchmanager.h index 29bec1414..9995c16b0 100644 --- a/src/kitemviews/private/kitemlistkeyboardsearchmanager.h +++ b/src/kitemviews/private/kitemlistkeyboardsearchmanager.h @@ -24,6 +24,7 @@ #define KITEMLISTKEYBOARDSEARCHMANAGER_H #include "dolphin_export.h" +#include "kitemviews/kitemset.h" #include #include @@ -64,6 +65,7 @@ public: public slots: void slotCurrentChanged(int current, int previous); + void slotSelectionChanged(const KItemSet& current, const KItemSet& previous); signals: /** @@ -79,6 +81,7 @@ signals: private: QString m_searchedString; + bool m_isSearchRestarted; QElapsedTimer m_keyboardInputTime; qint64 m_timeout; }; -- cgit v1.3.1