Merge branch 'Plasma/5.12' into Plasma/5.17
This commit is contained in:
commit
82f4e03d7a
1 changed files with 1 additions and 1 deletions
|
@ -532,7 +532,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<QKeySequence>() << shortcut);
|
||||
KGlobalAccel::self()->setGlobalShortcut(a, QList<QKeySequence>() << shortcut);
|
||||
input()->registerShortcut(shortcut, a, TabBox::self(), slot);
|
||||
auto cuts = KGlobalAccel::self()->shortcut(a);
|
||||
globalShortcutChanged(a, cuts.isEmpty() ? QKeySequence() : cuts.first());
|
||||
|
|
Loading…
Reference in a new issue