Check global shortcuts in Workspace::shortcutAvailable

One TODO less.
remotes/origin/Plasma/5.0
Martin Gräßlin 13 years ago
parent a3faf455b9
commit dc649d1dc6
  1. 7
      useractions.cpp

@ -1861,7 +1861,12 @@ void Client::delayedSetShortcut()
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();
it != clients.constEnd();
++it) {

Loading…
Cancel
Save