diff --git a/src/effects/windowview/kcm/windowvieweffectkcm.cpp b/src/effects/windowview/kcm/windowvieweffectkcm.cpp index 0c5ebe1f42..85afbc0689 100644 --- a/src/effects/windowview/kcm/windowvieweffectkcm.cpp +++ b/src/effects/windowview/kcm/windowvieweffectkcm.cpp @@ -1,5 +1,6 @@ /* SPDX-FileCopyrightText: 2021 Vlad Zahorodnii + SPDX-FileCopyrightText: 2022 ivan tkachenko SPDX-License-Identifier: GPL-2.0-or-later */ @@ -57,6 +58,12 @@ WindowViewEffectConfig::WindowViewEffectConfig(QWidget *parent, const QVariantLi KGlobalAccel::self()->setDefaultShortcut(toggleAction, {defaultToggleShortcutClass}); KGlobalAccel::self()->setShortcut(toggleAction, {defaultToggleShortcutClass}); + toggleAction = actionCollection->addAction(QStringLiteral("ExposeClassCurrentDesktop")); + toggleAction->setText(i18n("Toggle Present Windows (Window class on current desktop)")); + toggleAction->setProperty("isConfigurationAction", true); + KGlobalAccel::self()->setDefaultShortcut(toggleAction, QList()); // no default shortcut + KGlobalAccel::self()->setShortcut(toggleAction, QList()); + ui.shortcutsEditor->addCollection(actionCollection); connect(ui.shortcutsEditor, &KShortcutsEditor::keyChange, this, &WindowViewEffectConfig::markAsChanged); }