Check global shortcuts in Workspace::shortcutAvailable
One TODO less.
This commit is contained in:
parent
a3faf455b9
commit
dc649d1dc6
1 changed files with 6 additions and 1 deletions
|
@ -1861,7 +1861,12 @@ void Client::delayedSetShortcut()
|
||||||
|
|
||||||
bool Workspace::shortcutAvailable(const KShortcut& cut, Client* ignore) const
|
bool Workspace::shortcutAvailable(const KShortcut& cut, Client* ignore) const
|
||||||
{
|
{
|
||||||
// TODO check global shortcuts etc.
|
|
||||||
|
Q_FOREACH (const QKeySequence &seq, cut.toList()) {
|
||||||
|
if (!KGlobalAccel::getGlobalShortcutsByKey(seq).isEmpty()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
for (ClientList::ConstIterator it = clients.constBegin();
|
for (ClientList::ConstIterator it = clients.constBegin();
|
||||||
it != clients.constEnd();
|
it != clients.constEnd();
|
||||||
++it) {
|
++it) {
|
||||||
|
|
Loading…
Reference in a new issue