Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@idaemons.org>2016-12-22 10:21:52 +0300
committerAkinori MUSHA <knu@idaemons.org>2016-12-22 11:16:59 +0300
commitd0a3c0884037c0ad5d8871b9bb945f7d50e6539e (patch)
tree4d37ffe098ba6daf94838fdef728f592fa258c43 /tests
parent63a1b49745ab038aadd70bbfa3f97acec88f2a20 (diff)
Improve UI of the search edit (resurrecting 5c7c7f54)
- The copy action (Control+C) when no text is selected copies the password of the current entry. This should be reasonable when Control+B copies the username. - Down at EOL moves the focus to the entry view. Enter and Tab should do that, but it would be handy for user to be able to get to the third entry by hitting Down three times.
Diffstat (limited to 'tests')
-rw-r--r--tests/gui/TestGui.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/gui/TestGui.cpp b/tests/gui/TestGui.cpp
index 41059276d..9e4ef75b7 100644
--- a/tests/gui/TestGui.cpp
+++ b/tests/gui/TestGui.cpp
@@ -406,6 +406,13 @@ void TestGui::testSearch()
// Search for "someTHING"
QTest::keyClicks(searchTextEdit, "THING");
QTRY_COMPARE(entryView->model()->rowCount(), 2);
+ // Press Down to focus on the entry view if at EOL
+ QTest::keyClick(searchTextEdit, Qt::Key_Left);
+ QTest::keyClick(searchTextEdit, Qt::Key_Down);
+ QTRY_VERIFY(searchTextEdit->hasFocus());
+ QTest::keyClick(searchTextEdit, Qt::Key_Down);
+ QTRY_VERIFY(entryView->hasFocus());
+ QTest::mouseClick(searchTextEdit, Qt::LeftButton);
// Test case sensitive search
searchWidget->setCaseSensitive(true);