Skip to content

Commit

Permalink
You can now assign an input gesture to toggle simple review mode usin…
Browse files Browse the repository at this point in the history
…g the Input Gestures dialog. (#6173)
  • Loading branch information
LeonarddeR authored and jcsteh committed Aug 8, 2016
1 parent 0bd2550 commit 83d2f3f
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 @@ -1060,6 +1060,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 83d2f3f

Please sign in to comment.