Commit 9364198f authored by Nate Graham's avatar Nate Graham
Browse files

Change default keyboard switching shortcut to Meta+Alt+K

The current shortcut is Ctrl+Alt+K which would conceivably override app
shortcuts, since it doesn't use the Meta key.

This is safe to change in the code rather than adding a new one and
keeping the old one around for compatibility's sake because
KGlobalAccel::setShortcut by default preserves old shortcuts when they
are changed, and we aren't overriding that behavior here. So only new
installs will get the new shortcut and existing user installs will be
untouched.
parent 15110e1d
Pipeline #184759 passed with stage
in 5 minutes and 26 seconds
......@@ -24,7 +24,7 @@ KeyboardLayoutActionCollection::KeyboardLayoutActionCollection(QObject *parent,
setComponentDisplayName(i18n("Keyboard Layout Switcher"));
QAction *toggleAction = addAction(QStringLiteral("Switch to Next Keyboard Layout"));
toggleAction->setText(i18n("Switch to Next Keyboard Layout"));
KGlobalAccel::self()->setShortcut(toggleAction, QList<QKeySequence>() << QKeySequence(Qt::ALT | Qt::CTRL | Qt::Key_K), KGlobalAccel::Autoloading);
KGlobalAccel::self()->setShortcut(toggleAction, QList<QKeySequence>() << QKeySequence(Qt::META | Qt::ALT | Qt::Key_K), KGlobalAccel::Autoloading);
if (configAction) {
toggleAction->setProperty("isConfigurationAction", true);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment