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
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/DatabaseWidget.cpp')
-rw-r--r--src/gui/DatabaseWidget.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/gui/DatabaseWidget.cpp b/src/gui/DatabaseWidget.cpp
index 042e2a561..3e1d3192b 100644
--- a/src/gui/DatabaseWidget.cpp
+++ b/src/gui/DatabaseWidget.cpp
@@ -799,6 +799,38 @@ void DatabaseWidget::performAutoType()
}
}
+void DatabaseWidget::performAutoTypeUsername()
+{
+ auto currentEntry = currentSelectedEntry();
+ if (currentEntry) {
+ autoType()->performAutoTypeWithSequence(currentEntry, QStringLiteral("{USERNAME}"), window());
+ }
+}
+
+void DatabaseWidget::performAutoTypeUsernameEnter()
+{
+ auto currentEntry = currentSelectedEntry();
+ if (currentEntry) {
+ autoType()->performAutoTypeWithSequence(currentEntry, QStringLiteral("{USERNAME}{ENTER}"), window());
+ }
+}
+
+void DatabaseWidget::performAutoTypePassword()
+{
+ auto currentEntry = currentSelectedEntry();
+ if (currentEntry) {
+ autoType()->performAutoTypeWithSequence(currentEntry, QStringLiteral("{PASSWORD}"), window());
+ }
+}
+
+void DatabaseWidget::performAutoTypePasswordEnter()
+{
+ auto currentEntry = currentSelectedEntry();
+ if (currentEntry) {
+ autoType()->performAutoTypeWithSequence(currentEntry, QStringLiteral("{PASSWORD}{ENTER}"), window());
+ }
+}
+
void DatabaseWidget::openUrl()
{
auto currentEntry = currentSelectedEntry();