Show
Ignore:
Timestamp:
09/11/08 11:48:26 (4 months ago)
Author:
pvagner
Message:

* ITextDocumentTextInfo: Fixed a problem where NVDA was unable to move the review cursor to the bottom line. Added ability to detect strikedthrough font property.
* EditTextInfo? and ITextDocumentTextInfo: Introduced ability to identify links inside a richedit controls. Added _getPoint method which retrieves x and y coordinates for the current textInfo ofsset/range.
* script_moveMouseToNavigatorObject now makes use of the features listed above. When navigator object mouse is being moved to implements _getPoint in its textInfo, mouse is moved to the currently reviewed character. Otherwise mouse is moved into the center of the navigator object.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/source/appModules/_default.py

    r2372 r2377  
    162162        def script_moveMouseToNavigatorObject(self,keyPress): 
    163163                speech.speakMessage(_("Move mouse to navigator")) 
    164                 obj=api.getNavigatorObject() 
    165                 try: 
    166                         (left,top,width,height)=obj.location 
    167                 except: 
    168                         speech.speakMessage(_("object has no location")) 
    169                         return 
    170                 winUser.setCursorPos(left+(width/2),top+(height/2)) 
     164                obj=api.getNavigatorObject()  
     165                p=globalVars.reviewPosition.copy()._getPoint() 
     166                if p: 
     167                        winUser.setCursorPos(p.x,p.y) 
     168                else: 
     169                        try: 
     170                                (left,top,width,height)=obj.location 
     171                        except: 
     172                                speech.speakMessage(_("object has no location")) 
     173                                return 
     174                        winUser.setCursorPos(left+(width/2),top+(height/2)) 
    171175        script_moveMouseToNavigatorObject.__doc__=_("Moves the mouse pointer to the current navigator object") 
    172176