Skip to content

Commit

Permalink
#22 resolved conflict (regarding nvaccess PR 6894)
Browse files Browse the repository at this point in the history
  • Loading branch information
nishimotz committed Apr 5, 2017
2 parents 5a33128 + 31ed349 commit 0e660d2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 4 additions & 3 deletions source/globalCommands.py
Expand Up @@ -142,12 +142,13 @@ def script_reportCurrentLine(self,gesture):
except (NotImplementedError, RuntimeError):
info=obj.makeTextInfo(textInfos.POSITION_FIRST)
info.expand(textInfos.UNIT_LINE)
if scriptHandler.getLastScriptRepeatCount()==0:
scriptCount=scriptHandler.getLastScriptRepeatCount()
if scriptCount==0:
speech.speakTextInfo(info,unit=textInfos.UNIT_LINE,reason=controlTypes.REASON_CARET)
else:
speech.speakSpelling(info.text,useCharacterDescriptionMode=True)
speech.spellTextInfo(info,useCharacterDescriptions=scriptCount>1,useDetails=(scriptCount>1 and characterDescriptionMode))
# Translators: Input help mode message for report current line command.
script_reportCurrentLine.__doc__=_("Reports the current line under the application cursor. Pressing this key twice will spell the current line")
script_reportCurrentLine.__doc__=_("Reports the current line under the application cursor. Pressing this key twice will spell the current line. Pressing three times will spell the line using character descriptions.")
script_reportCurrentLine.category=SCRCAT_SYSTEMCARET

def script_leftMouseClick(self,gesture):
Expand Down
4 changes: 4 additions & 0 deletions user_docs/en/changes.t2t
Expand Up @@ -10,6 +10,8 @@
- Added support for aria-current attributes. (#6358)
- Support automatic language switching in Microsoft Edge. (#6852)
- Support Windows Calculator on Windows 10 Enterprise LTSB (Long-Term Servicing Branch) and Server. (#6914)
- Performing the read current line command three times quickly spells the line with character descriptions. (#6893)


== Bug Fixes ==
- Web page menu items (menu item checkbox's and radio buttons) can now be activated while in browse mode. (#6735)
Expand All @@ -24,6 +26,7 @@
- Certain combinations of keys on HIMS displays (e.g. space+dot4) no longer fail intermittently. (#3157)
- Fixed an issue when opening a serial port on systems using certain languages other than English which caused connecting to braille displays to fail in some cases. (#6845)
- Reduced the chance of configuration file being corrupted when Windows shuts down. Configuration files are now written to a temporary file before replacing the actual configuration file. (#3165)
- When performing the read current line command twice quickly to spell the line, the appropriate language is now used for the spelled characters. (#6726)


== Changes for Developers ==
Expand All @@ -39,6 +42,7 @@
- `config.validateConfig`. (#6846, #667)
- `config.save`. (#6846)


= 2017.1 =
Highlights of this release include reporting of sections and text columns in Microsoft Word; Support for reading, navigating and annotating books in Kindle for PC; and improved support for Microsoft Edge.

Expand Down
2 changes: 1 addition & 1 deletion user_docs/en/userGuide.t2t
Expand Up @@ -286,7 +286,7 @@ NVDA provides the following key commands in relation to the system caret:
%kc:beginInclude
|| Name | Desktop key | Laptop key | Description |
| Say all | NVDA+downArrow | NVDA+a | Starts reading from the current position of the system caret, moving it along as it goes |
| Read current line | NVDA+upArrow | NVDA+l | Reads the line where the system caret is currently situated. Pressing twice spells the line. |
| Read current line | NVDA+upArrow | NVDA+l | Reads the line where the system caret is currently situated. Pressing twice spells the line. Pressing three times spells the line using character descriptions. |
| Read current text selection | NVDA+Shift+upArrow | NVDA+shift+s | Reads any currently selected text |
| Next sentence | alt+downArrow | alt+downArrow | Moves the caret to the next sentence and announces it. (only supported in Microsoft Word and Outlook) |
| Previous sentence | alt+upArrow | alt+upArrow | Moves the caret to the previous sentence and announces it. (only supported in Microsoft Word and Outlook) |
Expand Down

0 comments on commit 0e660d2

Please sign in to comment.