|
|
@ -82,6 +82,12 @@ void Application::onKeyPressed(ofKeyEventArgs & args){ |
|
|
|
_cmdManager.exec(new ClearSurfacesCmd(getSurfaceManager())); |
|
|
|
} |
|
|
|
return; |
|
|
|
}else if(_keySequence == "rbt"){ |
|
|
|
reboot(); |
|
|
|
return; |
|
|
|
}else if(_keySequence == "sdn"){ |
|
|
|
shutdown(); |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -129,14 +135,6 @@ void Application::onKeyPressed(ofKeyEventArgs & args){ |
|
|
|
setNextPreset(); |
|
|
|
break; |
|
|
|
|
|
|
|
case 'x': |
|
|
|
reboot(); |
|
|
|
break; |
|
|
|
|
|
|
|
case 'c': |
|
|
|
shutdown(); |
|
|
|
break; |
|
|
|
|
|
|
|
default: |
|
|
|
// All the other keypresses are handled by the application state onKeyPressed
|
|
|
|
_state->onKeyPressed(this, args); |
|
|
|