Commit 505fedc3 authored by Nate Graham's avatar Nate Graham 🔩

Add Meta+L shortcut for "Lock Session"

Summary:
This shortcut is used by default on Windows and it's also nice to have global shortcuts
use the Meta key in general.

Test Plan:
- Log into a new user account or reset the ksmserver section in the Shortcuts KCM
- Hit {key Meta L} or {key ctrl alt L}
- Observe that both work

Reviewers: #plasma, #vdg, broulik, GB_2

Reviewed By: #vdg, GB_2

Subscribers: nicolasfella, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D20178
parent 35864f76
......@@ -175,7 +175,7 @@ void KSldApp::initialize()
a->setObjectName(QStringLiteral("Lock Session"));
a->setProperty("componentName", QStringLiteral("ksmserver"));
a->setText(i18n("Lock Session"));
KGlobalAccel::self()->setGlobalShortcut(a, QList<QKeySequence>() << Qt::ALT+Qt::CTRL+Qt::Key_L << Qt::Key_ScreenSaver );
KGlobalAccel::self()->setGlobalShortcut(a, QList<QKeySequence>() << Qt::META+Qt::Key_L << Qt::ALT+Qt::CTRL+Qt::Key_L << Qt::Key_ScreenSaver );
connect(a, &QAction::triggered, this,
[this]() {
lock(EstablishLock::Immediate);
......
Markdown is supported
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