Announce autotext such as numbering when pressing enter in editable documents #4185

Closed
nvaccessAuto opened this Issue Jun 11, 2014 · 5 comments

1 participant

@nvaccessAuto

Reported by mdcurran on 2014-06-11 05:07
Some editors sucha s Microsoft word can automatically insert numbers or bullets on new lines when pressing enter when currently in a list. Another exzmple would be a programming editor that automatically inserts tab characters when pressing enter.
When pressing enter, NVDA should announce any text on the new line up to the position of the caret.
This should happen in all editable text except for controls with live text (e.g. terminals).
These announcements must also be configurable.
Blocking #4393

@nvaccessAuto

Comment 1 by Michael Curran <mick@... on 2014-06-11 06:37
In [d09e413]:
```CommitTicketReference repository="" revision="d09e413806e30b8fba644d8c2bd60ded64928078"
Merge branch 't4185' into next. Incubates #4185

Changes:
Added labels: incubating
@nvaccessAuto

Comment 2 by nvdakor on 2014-06-11 10:22
Hi,
There seems to be a major bug with the implementation: when you press ENTER in a search box in sites such as Wikipedia and Twitter, NVDA throws runtime exception as follows:
STR:
1. Go to a site that you know has a search box, such as Twitter or Wikipedia.
2. Enter something into the search box (for example, in Twitter, try entering nvdasr then press ENTER).
Expected: NVDA proceeds as before (up to yesterday's snapshot).
Actual: A runtime exception is thrown as shown below:

Input: kb(desktop):enter
ERROR - scriptHandler.executeScript (03:20:51):
error executing script: <bound method Dynamic_EditableTextWithoutAutoSelectDetectionMSHTMLIAccessible.script_enter of <NVDAObjects.Dynamic_EditableTextWithoutAutoSelectDetectionMSHTMLIAccessible object at 0x048F7C50>> with gesture u'enter'
Traceback (most recent call last):
  File "scriptHandler.pyc", line 174, in executeScript
  File "editableText.pyc", line 119, in script_enter
  File "NVDAObjects\__init__.pyc", line 911, in makeTextInfo
  File "NVDAObjects\IAccessible\MSHTML.pyc", line 215, in __init__
RuntimeError: Only works with currently selected element

This does not occur in sites such as Google. In multi-line edit fields in browse mode, "blank" is spoken after pressing ENTER.
Thanks,

@nvaccessAuto

Comment 3 by Michael Curran <mick@... on 2014-06-11 23:01
In [f3da994]:
```CommitTicketReference repository="" revision="f3da99422deee84cc9490d279f311841034ba780"
Merge branch 't4185' into next. Incubates #4185

@nvaccessAuto

Comment 4 by Michael Curran <mick@... on 2014-06-26 07:11
In [dd2f2e4]:
```CommitTicketReference repository="" revision="dd2f2e4a0d03fc201eb0fb54520e8ae5e57c3843"
Merge branch 't4185'. Fixes #4185

Changes:
Removed labels: incubating
State: closed
@nvaccessAuto

Comment 5 by mdcurran on 2014-06-26 07:13
Changes:
Milestone changed from next to 2014.3

@nvaccessAuto nvaccessAuto added the bug label Nov 10, 2015
@nvaccessAuto nvaccessAuto added this to the 2014.3 milestone Nov 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment