Commit 98da04c6 authored by Bhushan Shah's avatar Bhushan Shah 📱

globalaccel: allow sleep and hibernate keyboard shortcuts

Summary:
This is useful for the phone specially. You can quickly turn on-off your
phone from lockscreen without actually unlocking it.

Test Plan: I need help testing it as my prefix session is broken currently.

Reviewers: #plasma, davidedmundson

Reviewed By: #plasma, davidedmundson

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D27721
parent 1c244f18
......@@ -51,7 +51,7 @@ static const QMap<QString, QRegularExpression> s_shortcutWhitelist{
QStringLiteral("mute|decrease_volume|increase_volume")
)},
{QStringLiteral("/component/org_kde_powerdevil"), QRegularExpression(
QStringLiteral("Increase Screen Brightness|Decrease Screen Brightness|Increase Keyboard Brightness|Decrease Keyboard Brightness|Turn Off Screen")
QStringLiteral("Increase Screen Brightness|Decrease Screen Brightness|Increase Keyboard Brightness|Decrease Keyboard Brightness|Turn Off Screen|Sleep|Hibernate")
)},
{QStringLiteral("/component/KDE_Keyboard_Layout_Switcher"), QRegularExpression(
QStringLiteral("Switch to Next Keyboard Layout|Switch keyboard layout to .*")
......
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