Skip to content

Commit

Permalink
When editing in Microsoft PowerPoint, pressing enter now reports auto…
Browse files Browse the repository at this point in the history
…matically entered text such as a bullet or number.

Fixes #5360.
  • Loading branch information
jcsteh committed Nov 9, 2015
1 parent 927095c commit 316343b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions source/appModules/powerpnt.py
@@ -1,6 +1,6 @@
#appModules/powerpnt.py
#A part of NonVisual Desktop Access (NVDA)
#Copyright (C) 2012-2014 NV Access Limited
#Copyright (C) 2012-2015 NV Access Limited
#This file is covered by the GNU General Public License.
#See the file COPYING for more details.

Expand All @@ -26,7 +26,7 @@
import appModuleHandler
from NVDAObjects.IAccessible import IAccessible, getNVDAObjectFromEvent
from NVDAObjects.window import Window
from NVDAObjects.behaviors import EditableTextWithoutAutoSelectDetection
from NVDAObjects.behaviors import EditableTextWithoutAutoSelectDetection, EditableText
import braille
from cursorManager import ReviewCursorManager
import controlTypes
Expand Down Expand Up @@ -908,13 +908,18 @@ class TextFrame(EditableTextWithoutAutoSelectDetection,PpObject):

def __init__(self,windowHandle=None,documentWindow=None,ppObject=None):
super(TextFrame,self).__init__(windowHandle=windowHandle,documentWindow=documentWindow,ppObject=ppObject)
# EditableText* wasn't added as an overlay,
# so initOverlayClass doesn't get called automatically.
# #5360: EditableText.initOverlayClass gives us announcement of new line text.
EditableText.initOverlayClass(self)
EditableTextWithoutAutoSelectDetection.initClass(self)

def _isEqual(self,other):
return super(TextFrame,self)._isEqual(other) and self.ppObject.parent.ID==other.ppObject.parent.ID

name=None
role=controlTypes.ROLE_EDITABLETEXT
states = {controlTypes.STATE_MULTILINE}

def _get_parent(self):
parent=self.ppObject.parent
Expand Down
1 change: 1 addition & 0 deletions user_docs/en/changes.t2t
Expand Up @@ -54,6 +54,7 @@ Highlights of this release include performance improvements in Windows 10; inclu
- Notifications are now reported correctly in Skype for Desktop 7.12 and later. (#5405)
- NVDA now correctly reports the focus when dismissing a context menu in some applications such as Jart. (#5302)
- In Windows 7 and later, Color is again reported in certain applications such as Wordpad. (#5352)
- When editing in Microsoft PowerPoint, pressing enter now reports automatically entered text such as a bullet or number. (#5360)


= 2015.3 =
Expand Down

0 comments on commit 316343b

Please sign in to comment.