Fix missing method in default.py for scripts.

This commit is contained in:
Storm Dragon 2024-12-22 15:16:18 -05:00
parent ba735c554b
commit 29f8697a9f

View File

@ -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.