For global auto-type use the default sequence of the entry before the group.

This commit is contained in:
Felix Geyer 2012-07-23 12:56:00 +02:00
parent 4a357e791e
commit 7820bf2510

View File

@ -188,7 +188,12 @@ QString Entry::autoTypeSequence(const QString& windowTitle) const
bool match = false; bool match = false;
Q_FOREACH (const AutoTypeAssociations::Association& assoc, m_autoTypeAssociations->getAll()) { Q_FOREACH (const AutoTypeAssociations::Association& assoc, m_autoTypeAssociations->getAll()) {
if (windowMatches(windowTitle, assoc.window)) { if (windowMatches(windowTitle, assoc.window)) {
if (!assoc.sequence.isEmpty()) {
sequence = assoc.sequence; sequence = assoc.sequence;
}
else {
sequence = m_data.defaultAutoTypeSequence;
}
match = true; match = true;
break; break;
} }