From 26341e3c432dbc85eebfe5c24ad4c8c12e02db21 Mon Sep 17 00:00:00 2001 From: Leonard de Ruijter Date: Fri, 15 Jul 2016 09:46:57 +0200 Subject: [PATCH] Added an unbound gesture to toggle simple review mode. Documented this change in the documentation Re #6173 --- source/globalCommands.py | 14 ++++++++++++++ user_docs/en/userGuide.t2t | 2 ++ 2 files changed, 16 insertions(+) diff --git a/source/globalCommands.py b/source/globalCommands.py index 029aa9b43b6..ab6bb8ac0be 100755 --- a/source/globalCommands.py +++ b/source/globalCommands.py @@ -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): diff --git a/user_docs/en/userGuide.t2t b/user_docs/en/userGuide.t2t index 9d5810790d6..900437e8d2a 100644 --- a/user_docs/en/userGuide.t2t +++ b/user_docs/en/userGuide.t2t @@ -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: