diff options
author | Ken Moore <ken@ixsystems.com> | 2017-07-11 16:30:45 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-07-11 16:30:45 -0400 |
commit | 575533f902657faa7f2a3b8b889b1da90458a57f (patch) | |
tree | 30c9c052634060e31ca397c8e3fbd88e4c05a4d3 /src-qt5/core/lumina-desktop-unified/src-events | |
parent | Added more key support for Lumina 2.0 (diff) | |
download | lumina-575533f902657faa7f2a3b8b889b1da90458a57f.tar.gz lumina-575533f902657faa7f2a3b8b889b1da90458a57f.tar.bz2 lumina-575533f902657faa7f2a3b8b889b1da90458a57f.zip |
Get the keyboard shortcut for "LockScreen" (case-insensitive) working, and fix some connection warnings.
Diffstat (limited to 'src-qt5/core/lumina-desktop-unified/src-events')
-rw-r--r-- | src-qt5/core/lumina-desktop-unified/src-events/LShortcutEvents.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src-qt5/core/lumina-desktop-unified/src-events/LShortcutEvents.cpp b/src-qt5/core/lumina-desktop-unified/src-events/LShortcutEvents.cpp index 1b78da21..3d50112c 100644 --- a/src-qt5/core/lumina-desktop-unified/src-events/LShortcutEvents.cpp +++ b/src-qt5/core/lumina-desktop-unified/src-events/LShortcutEvents.cpp @@ -139,11 +139,11 @@ QString LShortcutEvents::keylistToString(){ void LShortcutEvents::evaluateShortcutAction(QString action){ qDebug() << "Found Shortcut Action:" << action; evaluated = true; - if(action.startsWith("Exec=")){ - emit LaunchApplication(action.section("=",1,-1)); + if(action.startsWith("Exec:")){ + emit LaunchApplication(action.section(":",1,-1)); return; - }else if(action.startsWith("Launch=")){ - emit LaunchStandardApplication(action.section("=",1,-1)); + }else if(action.startsWith("Launch:")){ + emit LaunchStandardApplication(action.section(":",1,-1)); } //Specific Internal actions action = action.toLower(); @@ -152,6 +152,7 @@ void LShortcutEvents::evaluateShortcutAction(QString action){ else if(action=="reboot"){ emit StartReboot(); } else if(action=="shutdown"){ emit StartShutdown(); } else if(action=="show_leave_options"){ emit OpenLeaveDialog(); } + else if(action=="lockscreen"){ emit LockSession(); } } |