commit/nvda: norrumar: Add option to speak protected characters.

  • From: commits-noreply@xxxxxxxxxxxxx
  • To: nvda-addons-commits@xxxxxxxxxxxxx
  • Date: Fri, 19 Jun 2015 15:40:31 -0000

1 new commit in nvda:

https://bitbucket.org/nvdaaddonteam/nvda/commits/0c60b2143008/
Changeset: 0c60b2143008
Branch: t4624
User: norrumar
Date: 2015-06-19 15:34:23+00:00
Summary: Add option to speak protected characters.

Affected #: 4 files

diff --git a/source/config/__init__.py b/source/config/__init__.py
index 1f28f8b..85ba8a6 100644
--- a/source/config/__init__.py
+++ b/source/config/__init__.py
@@ -139,6 +139,7 @@ confspec = ConfigObj(StringIO(
speakCommandKeys = boolean(default=false)
speechInterruptForCharacters = boolean(default=true)
speechInterruptForEnter = boolean(default=true)
+ speakProtectedCharacters = boolean(default=false)
allowSkimReadingInSayAll = boolean(default=False)
handleInjectedKeys= boolean(default=true)


diff --git a/source/gui/settingsDialogs.py b/source/gui/settingsDialogs.py
index 30fa917..daf9e9e 100644
--- a/source/gui/settingsDialogs.py
+++ b/source/gui/settingsDialogs.py
@@ -655,6 +655,11 @@ class KeyboardSettingsDialog(SettingsDialog):

settingsSizer.Add(self.speechInterruptForEnterCheckBox,border=10,flag=wx.BOTTOM)
# Translators: This is the label for a checkbox in the
# keyboard settings dialog.
+
self.speakProtectedCharactersCheckBox=wx.CheckBox(self,wx.NewId(),label=_("Speak
protected characters"))
+
self.speakProtectedCharactersCheckBox.SetValue(config.conf["keyboard"]["speakProtectedCharacters"])
+
settingsSizer.Add(self.speakProtectedCharactersCheckBox,border=10,flag=wx.BOTTOM)
+ # Translators: This is the label for a checkbox in the
+ # keyboard settings dialog.

self.skimReadingInSayAllCheckBox=wx.CheckBox(self,wx.NewId(),label=_("Allow
skim &reading in Say All"))

self.skimReadingInSayAllCheckBox.SetValue(config.conf["keyboard"]["allowSkimReadingInSayAll"])

settingsSizer.Add(self.skimReadingInSayAllCheckBox,border=10,flag=wx.BOTTOM)
@@ -696,6 +701,7 @@ class KeyboardSettingsDialog(SettingsDialog):

config.conf["keyboard"]["speakTypedWords"]=self.wordsCheckBox.IsChecked()

config.conf["keyboard"]["speechInterruptForCharacters"]=self.speechInterruptForCharsCheckBox.IsChecked()

config.conf["keyboard"]["speechInterruptForEnter"]=self.speechInterruptForEnterCheckBox.IsChecked()
+
config.conf["keyboard"]["speakProtectedCharacters"]=self.speakProtectedCharactersCheckBox.IsChecked()

config.conf["keyboard"]["allowSkimReadingInSayAll"]=self.skimReadingInSayAllCheckBox.IsChecked()

config.conf["keyboard"]["beepForLowercaseWithCapslock"]=self.beepLowercaseCheckBox.IsChecked()

config.conf["keyboard"]["speakCommandKeys"]=self.commandKeysCheckBox.IsChecked()

diff --git a/source/speech.py b/source/speech.py
index 6d13846..5f80672 100755
--- a/source/speech.py
+++ b/source/speech.py
@@ -583,7 +583,7 @@ def
speakSelectionChange(oldInfo,newInfo,speakSelected=True,speakUnselected=True
def speakTypedCharacters(ch):
global curWordChars;
typingIsProtected=api.isTypingProtected()
- if typingIsProtected:
+ if typingIsProtected and not
config.conf["keyboard"]["speakProtectedCharacters"]:
realChar="*"
else:
realChar=ch
@@ -600,7 +600,7 @@ def speakTypedCharacters(ch):
curWordChars=[]
if log.isEnabledFor(log.IO):
log.io("typed word: %s"%typedWord)
- if config.conf["keyboard"]["speakTypedWords"] and not
typingIsProtected:
+ if config.conf["keyboard"]["speakTypedWords"] and (not
typingIsProtected or config.conf["keyboard"]["speakProtectedCharacters"]):
speakText(typedWord)
if config.conf["keyboard"]["speakTypedCharacters"] and ord(ch)>=32:
speakSpelling(realChar)

diff --git a/user_docs/en/changes.t2t b/user_docs/en/changes.t2t
index 7932e91..2e0c989 100644
--- a/user_docs/en/changes.t2t
+++ b/user_docs/en/changes.t2t
@@ -7,6 +7,7 @@

== New Features ==
- The existance of spelling errors is announced in editable fields for
Internet Explorer and other MSHTML controls. (#4174)
+- New keyboard setting to choose wether the characters typed on protected
fields as passwords should be spoken. (#4624)


= 2015.2 =

Repository URL: https://bitbucket.org/nvdaaddonteam/nvda/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.

Other related posts:

  • » commit/nvda: norrumar: Add option to speak protected characters. - commits-noreply