Fix missing method in default.py for scripts.
This commit is contained in:
parent
ba735c554b
commit
29f8697a9f
@ -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):
|
def bypassNextCommand(self, inputEvent=None):
|
||||||
"""Causes the next keyboard command to be ignored by Cthulhu
|
"""Causes the next keyboard command to be ignored by Cthulhu
|
||||||
and passed along to the current application.
|
and passed along to the current application.
|
||||||
|
Loading…
Reference in New Issue
Block a user