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/gui
diff options
context:
space:
mode:
authorJonathan White <support@dmapps.us>2020-07-15 01:34:53 +0300
committerJanek Bevendorff <janek@jbev.net>2020-08-19 21:24:40 +0300
commit8a7bdd5b9565d55cf8361f5981bf431e3595422a (patch)
tree6a3967e86ae2fb6bc2b34fc381304ec360a6c843 /tests/gui
parent0cc2c83525498050ff41f81cafff7a92f4d24162 (diff)
Change actions for F1-F2-F3 keys
* Fixes #5037 * F1 focuses group view, if already focused it opens the focused group for editing * F2 focuses entry view, if already focused it opens the focused entry for editing * F3 focuses search
Diffstat (limited to 'tests/gui')
-rw-r--r--tests/gui/TestGui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/gui/TestGui.cpp b/tests/gui/TestGui.cpp
index 70417dbd5..d323744b6 100644
--- a/tests/gui/TestGui.cpp
+++ b/tests/gui/TestGui.cpp
@@ -904,10 +904,10 @@ void TestGui::testSearch()
QTest::keyClick(searchTextEdit, Qt::Key_Down);
QTRY_VERIFY(entryView->hasFocus());
auto* searchedEntry = entryView->currentEntry();
- // Restore focus using F1 key and search text selection
- QTest::keyClick(m_mainWindow.data(), Qt::Key_F1);
- QTRY_COMPARE(searchTextEdit->selectedText(), QString("someTHING"));
+ // Restore focus using F3 key and search text selection
+ QTest::keyClick(m_mainWindow.data(), Qt::Key_F3);
QTRY_VERIFY(searchTextEdit->hasFocus());
+ QTRY_COMPARE(searchTextEdit->selectedText(), QString("someTHING"));
searchedEntry->setPassword("password");
QClipboard* clipboard = QApplication::clipboard();