]> cloud.milkyroute.net Git - dolphin.git/commit
When the selection is deselected, restart the keyboard search from the beginning
authorMéven Car <meven29@gmail.com>
Sat, 26 Oct 2019 10:53:04 +0000 (12:53 +0200)
committerMéven Car <meven29@gmail.com>
Sat, 26 Oct 2019 10:53:34 +0000 (12:53 +0200)
commita5ce798f282b6cf9e153bba89f9caea0cec37da0
tree818304092ce30546b7d6fc126ed471e9f7b5fd57
parentd8c11a67bd98820fd2c9a4b616460857af70344b
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/kitemlistcontroller.cpp
src/kitemviews/private/kitemlistkeyboardsearchmanager.cpp
src/kitemviews/private/kitemlistkeyboardsearchmanager.h
src/tests/kitemlistcontrollertest.cpp
src/tests/kitemlistkeyboardsearchmanagertest.cpp