From 8ffa53b69f064cffd1169b83e6a499092d8471d6 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Thu, 10 Jul 2025 01:13:59 -0400 Subject: [PATCH] Attempt to fix speech cutoff when reading default text. --- input.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/input.py b/input.py index d3a7320..e15fffa 100644 --- a/input.py +++ b/input.py @@ -35,12 +35,12 @@ def get_input(prompt="Enter text:", text=""): text_buffer = list(text) # Use list for easier character manipulation cursor_pos = len(text_buffer) # Start at end of initial text - # Announce the prompt and initial text - speak(prompt) + # Announce the prompt and initial text as a single message if text: - speak(f"Default text: {text}") + message = f"{prompt} Default text: {text}" else: - speak("Empty text field") + message = f"{prompt} Empty text field" + speak(message) # Speak initial cursor position if cursor_pos == 0: