Skip to content

Commit ebb246b

Browse files
Merge 46f62df into 188368f
2 parents 188368f + 46f62df commit ebb246b

6 files changed

Lines changed: 9 additions & 320 deletions

File tree

source/globalCommands.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,7 @@
2929
import api
3030
import textInfos
3131
import speech
32-
from speech import (
33-
sayAll,
34-
shortcutKeys,
35-
)
32+
from speech import sayAll
3633
from NVDAObjects import NVDAObject, NVDAObjectTextInfo
3734
import globalVars
3835
from logHandler import log
@@ -2591,13 +2588,12 @@ def script_reportStatusLine(self, gesture):
25912588
def script_reportFocusObjectAccelerator(self, gesture: inputCore.InputGesture) -> None:
25922589
obj = api.getFocusObject()
25932590
if obj.keyboardShortcut:
2594-
shortcut = obj.keyboardShortcut
2595-
shortcutKeys.speakKeyboardShortcuts(shortcut)
2596-
braille.handler.message(shortcut)
2591+
res = obj.keyboardShortcut
25972592
else:
25982593
# Translators: reported when a user requests the accelerator key
25992594
# of the currently focused object, but there is none set.
2600-
ui.message(_("No shortcut key"))
2595+
res = _("No shortcut key")
2596+
ui.message(res)
26012597

26022598
@script(
26032599
# Translators: Input help mode message for toggle mouse tracking command.

source/speech/shortcutKeys.py

Lines changed: 0 additions & 144 deletions
This file was deleted.

source/speech/speech.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
EndUtteranceCommand,
3636
CharacterModeCommand,
3737
)
38-
from .shortcutKeys import getKeyboardShortcutsSpeech
3938

4039
from . import types
4140
from .types import (
@@ -1726,7 +1725,8 @@ def getPropertiesSpeech( # noqa: C901
17261725
textList.append(description)
17271726
# sometimes keyboardShortcut key is present but value is None
17281727
keyboardShortcut: Optional[str] = propertyValues.get('keyboardShortcut')
1729-
textList.extend(getKeyboardShortcutsSpeech(keyboardShortcut))
1728+
if keyboardShortcut:
1729+
textList.append(keyboardShortcut)
17301730
if includeTableCellCoords and cellCoordsText:
17311731
textList.append(cellCoordsText)
17321732
if cellCoordsText or rowNumber or columnNumber:

tests/system/robot/startupShutdownNVDA.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def quits_from_menu(showExitDialog=True):
7676
actualSpeech,
7777
"\n".join([
7878
"Exit NVDA dialog",
79-
"What would you like to do? combo box Exit collapsed Alt plus d"
79+
"What would you like to do? combo box Exit collapsed Alt plus d"
8080
])
8181
)
8282
_builtIn.sleep(1) # the dialog is not always receiving the enter keypress, wait a little for it
@@ -105,7 +105,7 @@ def quits_from_keyboard():
105105
actualSpeech,
106106
"\n".join([
107107
"Exit NVDA dialog",
108-
"What would you like to do? combo box Exit collapsed Alt plus d"
108+
"What would you like to do? combo box Exit collapsed Alt plus d"
109109
])
110110
)
111111
_builtIn.sleep(1) # the dialog is not always receiving the enter keypress, wait a little longer for it
@@ -143,7 +143,7 @@ def read_welcome_dialog():
143143
"NVDA, get help and access other NVDA functions."
144144
),
145145
"Options grouping",
146-
"Keyboard layout: combo box desktop collapsed Alt plus k"
146+
"Keyboard layout: combo box desktop collapsed Alt plus k"
147147
])
148148
)
149149
_builtIn.sleep(1) # the dialog is not always receiving the enter keypress, wait a little longer for it

tests/unit/test_speechShortcutKeys.py

Lines changed: 0 additions & 161 deletions
This file was deleted.

user_docs/en/changes.t2t

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,11 @@ eSpeak-NG, LibLouis braille translator, and Unicode CLDR have been updated.
141141
- When forcing UIA support with certain terminal and consoles, a bug is fixed which caused a freeze and the log file to be spammed. (#14689)
142142
- NVDA will no longer refuse to save the configuration after a configuration reset. (#13187)
143143
- When running a temporary version from the launcher, NVDA will not mislead users into thinking they can save the configuration. (#14914)
144-
- Reporting of object shortcut keys has been improved. (#10807)
145144
- NVDA now generally responds slightly faster to commands and focus changes. (#14928)
146145
- Displaying the OCR settings will not fail on some systems anymore. (#15017)
147146
- Fix bug related to saving and loading the NVDA configuration, including switching synthesizers. (#14760)
148147
- Fix bug causing text review "flick up" touch gesture to move pages rather than move to previous line. (#15127)
149148
-
150-
-
151149

152150

153151
== Changes for Developers ==

0 commit comments

Comments
 (0)