Attempt to fix speech cutoff when reading default text.

This commit is contained in:
Storm Dragon
2025-07-10 01:13:59 -04:00
parent 68ffde0fc7
commit 8ffa53b69f

View File

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