in computers/default/docker.py [0:0]
def type(self, text: str) -> None:
"""
Type the given text via xdotool, preserving spaces and quotes.
"""
# Escape single quotes in the user text: ' -> '\'\''
safe_text = text.replace("'", "'\\''")
# Then wrap everything in single quotes for xdotool
cmd = f"DISPLAY={self.display} xdotool type -- '{safe_text}'"
self._exec(cmd)