Skip to content

Commit 901f022

Browse files
authored
Merge 4725bcc into 8d6a385
2 parents 8d6a385 + 4725bcc commit 901f022

3 files changed

Lines changed: 27 additions & 2 deletions

File tree

source/globalCommands.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2714,6 +2714,28 @@ def script_toggleSpeechViewer(self,gesture):
27142714
gui.mainFrame.sysTrayIcon.menu_tools_toggleSpeechViewer.Check(True)
27152715
ui.message(state)
27162716

2717+
@script(
2718+
description=_(
2719+
# Translators: Input help mode message for toggle Braille viewer command.
2720+
"Toggles the NVDA Braille viewer, a floating window that allows you to view braille output, "
2721+
"and the text equivalent for each braille character"
2722+
),
2723+
category=SCRCAT_TOOLS
2724+
)
2725+
def script_toggleBrailleViewer(self, gesture):
2726+
import brailleViewer
2727+
if brailleViewer.isBrailleViewerActive():
2728+
# Translators: The message announced when disabling braille viewer.
2729+
state = _("Braille viewer disabled")
2730+
brailleViewer.destroyBrailleViewer()
2731+
gui.mainFrame.sysTrayIcon.menu_tools_toggleBrailleViewer.Check(False)
2732+
else:
2733+
# Translators: The message announced when enabling Braille viewer.
2734+
state = _("Braille viewer enabled")
2735+
brailleViewer.createBrailleViewerTool()
2736+
gui.mainFrame.sysTrayIcon.menu_tools_toggleBrailleViewer.Check(True)
2737+
ui.message(state)
2738+
27172739
@script(
27182740
# Translators: Input help mode message for toggle braille tether to command
27192741
# (tethered means connected to or follows).

user_docs/en/changes.t2t

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ What's New in NVDA
1919
- This affects the following devices: MiniSeika (16, 24 cells), V6, and V6Pro (40 cells)
2020
- Manually selecting the bluetooth COM port is also now supported.
2121
-
22+
- Added a command to toggle the braille viewer; there is no default associated gesture. (#13258)
2223
-
2324

2425

@@ -73,14 +74,14 @@ What's New in NVDA
7374
- ``core.CallCancelled`` is now ``exceptions.CallCancelled``. (#12940)
7475
- All constants starting with RPC from ``core`` and ``logHandler`` are moved into ``RPCConstants.RPC`` enum. (#12940)
7576
- It is recommended that ``mouseHandler.doPrimaryClick`` and ``mouseHandler.doSecondaryClick`` functions should be used to click the mouse to perform a logical action such as activating (primary) or secondary (show context menu),
76-
rather than using executeMouseEvent and specifying the left or right mouse button specifically.
77+
rather than using ``executeMouseEvent`` and specifying the left or right mouse button specifically.
7778
This ensures code will honor the Windows user setting for swapping the primary mouse button. (#12642)
7879
- ``config.getSystemConfigPath`` has been removed - there is no replacement. (#12943)
7980
- ``shlobj.SHGetFolderPath`` has been removed - please use ``shlobj.SHGetKnownFolderPath`` instead. (#12943)
8081
- ``shlobj`` constants have been removed. A new enum has been created, ``shlobj.FolderId`` for usage with ``SHGetKnownFolderPath``. (#12943)
8182
- ``diffHandler.get_dmp_algo`` and ``diffHandler.get_difflib_algo`` have been replaced with ``diffHandler.prefer_dmp`` and ``diffHandler.prefer_difflib`` respectively. (#12974)
8283
- ``languageHandler.curLang`` has been removed - to get the current NVDA language use ``languageHandler.getLanguage()``. (#13082)
83-
- A `getStatusBarText` method can be implemented on an appModule to customize the way NVDA fetches the text from the status bar. (#12845)
84+
- A ``getStatusBarText`` method can be implemented on an appModule to customize the way NVDA fetches the text from the status bar. (#12845)
8485
- ``globalVars.appArgsExtra`` has been removed. (#13087)
8586
- If your add-on need to process additional command line arguments see the documentation of ``addonHandler.isCLIParamKnown`` and the developer guide for details.
8687
-

user_docs/en/userGuide.t2t

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2200,6 +2200,8 @@ To prevent unintentionally routing to cells, the command is delayed.
22002200
The mouse must hover until the cell turns green.
22012201
The cell will start as a light yellow colour, transition to orange, then suddenly become green.
22022202

2203+
To toggle the braille viewer from anywhere, please assign a custom gesture using the [Input Gestures dialog #InputGestures].
2204+
22032205
++ Python Console ++[PythonConsole]
22042206
The NVDA Python console, found under Tools in the NVDA menu, is a development tool which is useful for debugging, general inspection of NVDA internals or inspection of the accessibility hierarchy of an application.
22052207
For more information, please see the [NVDA Developer Guide https://www.nvaccess.org/files/nvda/documentation/developerGuide.html].

0 commit comments

Comments
 (0)