Skip to content

Commit 3423259

Browse files
authored
Merge 10f0feb into eff1aa4
2 parents eff1aa4 + 10f0feb commit 3423259

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

source/globalCommands.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,22 @@ def script_cycleSpeechSymbolLevel(self,gesture):
943943
# %s will be replaced with the symbol level; e.g. none, some, most and all.
944944
ui.message(_("Symbol level %s") % name)
945945

946+
@script(
947+
# Translators: Input help mode message for toggle delayed character description command.
948+
description=_("Toggles on and off delayed descriptions for characters on cursor movement"),
949+
category=SCRCAT_SPEECH,
950+
)
951+
def script_toggleDelayedCharacterDescription(self, gesture: inputCore.InputGesture) -> None:
952+
enabled: bool = not config.conf["speech"]["delayedCharacterDescriptions"]
953+
config.conf["speech"]["delayedCharacterDescriptions"] = enabled
954+
if enabled:
955+
# Translators: The message announced when toggling the delayed character description setting.
956+
state = _("delayed character descriptions on")
957+
else:
958+
# Translators: The message announced when toggling the delayed character description setting.
959+
state = _("delayed character descriptions off")
960+
ui.message(state)
961+
946962
@script(
947963
# Translators: Input help mode message for move mouse to navigator object command.
948964
description=_("Moves the mouse pointer to the current navigator object"),

0 commit comments

Comments
 (0)