diff --git a/src/keyboard_layout.cpp b/src/keyboard_layout.cpp index 1786b450c3..74e6c3c651 100644 --- a/src/keyboard_layout.cpp +++ b/src/keyboard_layout.cpp @@ -44,9 +44,10 @@ void KeyboardLayout::init() switchKeyboardAction->setObjectName(QStringLiteral("Switch to Next Keyboard Layout")); switchKeyboardAction->setProperty("componentName", QStringLiteral("KDE Keyboard Layout Switcher")); switchKeyboardAction->setProperty("componentDisplayName", i18n("Keyboard Layout Switcher")); - const QKeySequence sequence = QKeySequence(Qt::ALT | Qt::CTRL | Qt::Key_K); + const QKeySequence sequence = QKeySequence(Qt::META | Qt::ALT | Qt::Key_K); KGlobalAccel::self()->setDefaultShortcut(switchKeyboardAction, QList({sequence})); KGlobalAccel::self()->setShortcut(switchKeyboardAction, QList({sequence})); + kwinApp()->platform()->setupActionForGlobalAccel(switchKeyboardAction); connect(switchKeyboardAction, &QAction::triggered, this, &KeyboardLayout::switchToNextLayout); diff --git a/src/useractions.cpp b/src/useractions.cpp index 0c51216d3c..abf574861d 100644 --- a/src/useractions.cpp +++ b/src/useractions.cpp @@ -1017,7 +1017,7 @@ void Workspace::initShortcuts() DEF2("Window Below Other Windows", kli18n("Keep Window Below Others"), 0, slotWindowBelow); DEF(kli18n("Activate Window Demanding Attention"), - Qt::CTRL | Qt::ALT | Qt::Key_A, slotActivateAttentionWindow); + Qt::META | Qt::CTRL | Qt::Key_A, slotActivateAttentionWindow); DEF(kli18n("Setup Window Shortcut"), 0, slotSetupWindowShortcut); DEF2("Window Move Center", kli18n("Move Window to the Center"), 0, @@ -1101,7 +1101,7 @@ void Workspace::initShortcuts() DEF(kli18n("Switch to Next Screen"), 0, slotSwitchToNextScreen); DEF(kli18n("Switch to Previous Screen"), 0, slotSwitchToPrevScreen); - DEF(kli18n("Kill Window"), Qt::CTRL | Qt::ALT | Qt::Key_Escape, slotKillWindow); + DEF(kli18n("Kill Window"), Qt::META | Qt::CTRL | Qt::Key_Escape, slotKillWindow); DEF6(kli18n("Suspend Compositing"), Qt::SHIFT | Qt::ALT | Qt::Key_F12, Compositor::self(), Compositor::toggleCompositing); DEF6(kli18n("Invert Screen Colors"), 0, kwinApp()->platform(), Platform::invertScreen);