diff options
author | Ken Moore <ken@ixsystems.com> | 2017-07-11 14:06:50 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-07-11 14:07:25 -0400 |
commit | fc7146bbf3e067fc58ae9d5d21fa7403e1db5326 (patch) | |
tree | c3c9db4d53c9788538ec60cbce8ec29fad3fa051 /src-qt5/core/lumina-desktop-unified/src-events | |
parent | Added more key support for Lumina 2.0 (diff) | |
download | lumina-fc7146bbf3e067fc58ae9d5d21fa7403e1db5326.tar.gz lumina-fc7146bbf3e067fc58ae9d5d21fa7403e1db5326.tar.bz2 lumina-fc7146bbf3e067fc58ae9d5d21fa7403e1db5326.zip |
Start adding some default keyboard shortcuts/files to Lumina 2.
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(); } } |