From 7820bf25105baf55778f07d24ffad21b3d316960 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Mon, 23 Jul 2012 12:56:00 +0200 Subject: [PATCH] For global auto-type use the default sequence of the entry before the group. --- src/core/Entry.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/core/Entry.cpp b/src/core/Entry.cpp index eae874ea8..ade9e45d1 100644 --- a/src/core/Entry.cpp +++ b/src/core/Entry.cpp @@ -188,7 +188,12 @@ QString Entry::autoTypeSequence(const QString& windowTitle) const bool match = false; Q_FOREACH (const AutoTypeAssociations::Association& assoc, m_autoTypeAssociations->getAll()) { if (windowMatches(windowTitle, assoc.window)) { - sequence = assoc.sequence; + if (!assoc.sequence.isEmpty()) { + sequence = assoc.sequence; + } + else { + sequence = m_data.defaultAutoTypeSequence; + } match = true; break; }