mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-25 15:55:38 -04:00
Properly auto-type line breaks and tabs in text.
This commit is contained in:
parent
2631277184
commit
940a5026c1
1 changed files with 9 additions and 1 deletions
|
@ -477,9 +477,17 @@ QList<AutoTypeAction*> AutoType::createActionFromTemplate(const QString& tmpl, c
|
||||||
QString resolved = entry->resolvePlaceholders(placeholder);
|
QString resolved = entry->resolvePlaceholders(placeholder);
|
||||||
if (placeholder != resolved) {
|
if (placeholder != resolved) {
|
||||||
Q_FOREACH (const QChar& ch, resolved) {
|
Q_FOREACH (const QChar& ch, resolved) {
|
||||||
|
if (ch == '\n') {
|
||||||
|
list.append(new AutoTypeKey(Qt::Key_Enter));
|
||||||
|
}
|
||||||
|
else if (ch == '\t') {
|
||||||
|
list.append(new AutoTypeKey(Qt::Key_Tab));
|
||||||
|
}
|
||||||
|
else {
|
||||||
list.append(new AutoTypeChar(ch));
|
list.append(new AutoTypeChar(ch));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue