Auto-Type: Shortcuts for selection dialog (#6361)

* Shortcut to toggle search all entries
* Select first match only when we have a window match

When we default to full database search it's possible the user would select the first match without by accident.

In this case when our query is empty we don't select anything and you need to either type something or press down to select the first item.

* Added username, password, and TOTP keyboard shortcuts and a help tip

* Closes #6176

Co-authored-by: Jonathan White <support@dmapps.us>
This commit is contained in:
Toni Spets
2021-04-01 06:27:56 +03:00
committed by GitHub
parent c19efb5b19
commit 371bd2e51b
5 changed files with 112 additions and 44 deletions

View File

@@ -509,6 +509,11 @@ void AutoType::resetAutoTypeState()
QList<QSharedPointer<AutoTypeAction>>
AutoType::parseSequence(const QString& entrySequence, const Entry* entry, QString& error, bool syntaxOnly)
{
if (!entry) {
error = tr("Invalid entry provided");
return {};
}
const int maxTypeDelay = 100;
const int maxWaitDelay = 10000;
const int maxRepetition = 100;