Skip to content

Commit

Permalink
Added an unbound gesture to toggle simple review mode. Documented thi…
Browse files Browse the repository at this point in the history
…s change in the documentation

Re nvaccess#6173
  • Loading branch information
Leonard de Ruijter committed Jul 19, 2016
1 parent 8f4b4f0 commit 26341e3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions source/globalCommands.py
Expand Up @@ -734,6 +734,20 @@ def script_reviewMode_previous(self,gesture):
script_reviewMode_previous.__doc__=_("Switches to the previous review mode (e.g. object, document or screen) and positions the review position at the point of the navigator object")
script_reviewMode_previous.category=SCRCAT_TEXTREVIEW

def script_toggleSimpleReviewMode(self,gesture):
if config.conf["reviewCursor"]["simpleReviewMode"]:
# Translators: The message announced when toggling simple review mode.
state = _("Simple review mode off")
config.conf["reviewCursor"]["simpleReviewMode"]=False
else:
# Translators: The message announced when toggling simple review mode.
state = _("Simple review mode on")
config.conf["reviewCursor"]["simpleReviewMode"]=True
ui.message(state)
# Translators: Input help mode message for toggle simple review mode command.
script_toggleSimpleReviewMode.__doc__=_("Toggles simple review mode on and off")
script_toggleSimpleReviewMode.category=SCRCAT_OBJECTNAVIGATION

def script_navigatorObject_current(self,gesture):
curObject=api.getNavigatorObject()
if not isinstance(curObject,NVDAObject):
Expand Down
2 changes: 2 additions & 0 deletions user_docs/en/userGuide.t2t
Expand Up @@ -1051,6 +1051,8 @@ When enabled, the review cursor will follow the mouse as it moves.
==== Simple Review mode ====
When enabled, NVDA will filter the hierarchy of objects that can be navigated to exclude objects that aren't of interest to the user; e.g. invisible objects and objects used only for layout purposes.

To toggle simple review mode from anywhere, please assign a custom gesture using the [Input Gestures dialog #InputGestures].

+++ Object Presentation Settings (NVDA+control+o) +++
Found in the Preferences menu under "Object Presentation...".
This dialog box contains the following options:
Expand Down

0 comments on commit 26341e3

Please sign in to comment.