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.
icc-effect-5.14.5
Martin Gräßlin 2013-02-13 13:55:08 +01:00
parent dc649d1dc6
commit 8a2e7fee56
1 changed files with 6 additions and 0 deletions

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();