Skip to content

Commit

Permalink
Added an input gesture for temporarily disabling all configuration pr…
Browse files Browse the repository at this point in the history
…ofile triggers as suggested in nvaccess#4935
  • Loading branch information
LeonarddeR authored and Leonard de Ruijter committed Jun 17, 2016
1 parent 065e92f commit 4074785
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions source/globalCommands.py
Expand Up @@ -1869,6 +1869,20 @@ def script_activateConfigProfilesDialog(self, gesture):
script_activateConfigProfilesDialog.__doc__ = _("Shows the NVDA Configuration Profiles dialog")
script_activateConfigProfilesDialog.category=SCRCAT_CONFIG

def script_toggleConfigProfileTriggers(self,gesture):
if config.conf.profileTriggersEnabled:
# Translators: The message announced when temporarily disabling all configuration profile triggers.
state = _("Configuration profile triggers disabled")
config.conf.profileTriggersEnabled=False
else:
# Translators: The message announced when re-enabling all configuration profile triggers.
state = _("Configuration profile triggers enabled")
config.conf.profileTriggersEnabled=True
ui.message(state)
# Translators: Input help mode message for toggle configuration profile triggers command.
script_toggleConfigProfileTriggers.__doc__=_("Disables or enables all configuration profile triggers, where disabling is on a temporary basis")
script_toggleConfigProfileTriggers.category=SCRCAT_CONFIG

def script_interactWithMath(self, gesture):
import mathPres
mathMl = mathPres.getMathMlFromTextInfo(api.getReviewPosition())
Expand Down

0 comments on commit 4074785

Please sign in to comment.