Accept shortucts not matching regular expression

The regular expression is only matching shortcuts of the kind:
ctrl+(123)

which does not match a normal shortcut like:
ctrl+x

So if multiple shortcuts are specified, one without multiple options
has not been accepted.
This commit is contained in:
Martin Gräßlin 2013-02-13 13:55:08 +01:00
parent dc649d1dc6
commit 8a2e7fee56

View file

@ -1819,6 +1819,12 @@ void Client::setShortcut(const QString& _cut)
if (!c.isEmpty())
keys.append(c);
}
} else {
// regexp doesn't match, so it should be a normal shortcut
KShortcut c(*it);
if (!c.isEmpty()) {
keys.append(c);
}
}
}
for (QList< KShortcut >::ConstIterator it = keys.constBegin();