Skip to content

Commit 99a3e84

Browse files
committed
add number of search results shown
1 parent 998a655 commit 99a3e84

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed
187 Bytes
Binary file not shown.

locale/es/LC_MESSAGES/launchtype.po

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ msgstr "Modo historial de portapapeles"
8282
msgid "commands mode"
8383
msgstr "modo comandos"
8484

85+
#: src/managers/ui_manager.py:221
86+
msgid "{}, {} search results shown, use tab and down arrow to access more results"
87+
msgstr "{}, {} resultados de búsqueda mostrados, usa tab y flecha abajo para acceder a más resultados"
88+
8589
#: src/managers/ui_manager.py:264
8690
msgid "information"
8791
msgstr "información"

src/managers/ui_manager.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,14 @@ def update_list(self, event=None):
211211

212212
# If user has typed something in the edit field, speak the first result
213213
if not self.edit.Value == "":
214-
SpeechService.speak(self.list.GetString(0))
214+
result_count = self.list.GetCount()
215+
first_result = self.list.GetString(0)
216+
if result_count == 1:
217+
# Single result - likely a shortcut match
218+
SpeechService.speak(first_result)
219+
else:
220+
# Multiple results - announce focused result, count, and navigation hint
221+
SpeechService.speak(_("{}, {} search results shown, use tab and down arrow to access more results").format(first_result, result_count))
215222

216223
def run_button_clicked(self, event):
217224
try:

0 commit comments

Comments
 (0)