diff --git a/tabbox/tabbox.cpp b/tabbox/tabbox.cpp index 42651c6be8..475e57e31c 100644 --- a/tabbox/tabbox.cpp +++ b/tabbox/tabbox.cpp @@ -526,7 +526,7 @@ void TabBox::key(const char *actionName, Slot slot, const QKeySequence &shortcut a->setProperty("componentName", QStringLiteral(KWIN_NAME)); a->setObjectName(QString::fromUtf8(actionName)); a->setText(i18n(actionName)); - KGlobalAccel::self()->setShortcut(a, QList() << shortcut); + KGlobalAccel::self()->setGlobalShortcut(a, QList() << shortcut); input()->registerShortcut(shortcut, a, TabBox::self(), slot); auto cuts = KGlobalAccel::self()->shortcut(a); globalShortcutChanged(a, cuts.isEmpty() ? QKeySequence() : cuts.first());