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:
parent
dc649d1dc6
commit
8a2e7fee56
1 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue