Fix missing method in default.py for scripts.
This commit is contained in:
1 parent
ba735c554b
commit
29f8697a9f
1 file changed
+7
@@ -737,6 +737,13 @@ class Script(script.Script):
|
||||
# #
|
||||
########################################################################
|
||||
|
||||
def toggleSleepMode(self, input_event=None):
|
||||
"""Toggles between sleep mode and regular mode."""
|
||||
script_manager = _scriptManager
|
||||
sleepScript = script_manager.createScript("sleepmode", self.app)
|
||||
script_manager.setActiveScript(sleepScript, "Sleep mode toggled")
|
||||
return True
|
||||
|
||||
def bypassNextCommand(self, inputEvent=None):
|
||||
"""Causes the next keyboard command to be ignored by Cthulhu
|
||||
and passed along to the current application.
|
||||
|
||||
Reference in new issue
Block a user