From 8a7bdd5b9565d55cf8361f5981bf431e3595422a Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Tue, 14 Jul 2020 18:34:53 -0400 Subject: 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 --- tests/gui/TestGui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') 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(); -- cgit v1.2.3