Changeset 2424

Show
Ignore:
Timestamp:
10/08/08 23:29:17 (3 months ago)
Author:
bzr
Message:

title script in default appModule: If pressed twice, spell the title. If pressed thrice, copy the title to the clipboard.

Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk

    • Property bzr:revision-info
      •  

        old new  
        1 timestamp: 2008-10-08 06:56:10.128000021 +1000 
         1timestamp: 2008-10-09 09:28:34.970000029 +1000 
        22committer: James Teh <jamie@jantrid.net> 
        33properties:  
    • Property bzr:revision-id:v3-list-QlpoOTFBWSZTWbrL2vUAAB1VgAAQABCAQDrrnqAgAFCgaaGRkxBoTIJ6mmaNRwhndFAoNhZjh_YY4a01fOg1ulgNNC2UrzPdXXEnDpX8XckU4UJC6y9r1A..
      •  

        old new  
        1971972214 jamie@jantrid.net-20081006092003-vmgctsl79vtejen3 
        1981982217 jamie@jantrid.net-20081007205610-6oo6sj77usytyqvj 
         1992223 jamie@jantrid.net-20081008232834-lhmzgnt7v142f5ml 
    • Property bzr:file-ids
      •  

        old new  
        1 source/virtualBuffers/__init__.py       1675@dbe06fc7-9119-0410-a01d-9dbf589ecbba:trunk:source%2FvirtualBuffers%2F__init__.py 
        2 source/virtualBuffers/gecko_ia2.py      1694@dbe06fc7-9119-0410-a01d-9dbf589ecbba:trunk:source%2FvirtualBuffers%2Fgecko_ia2.py 
         1source/appModules/_default.py   92@dbe06fc7-9119-0410-a01d-9dbf589ecbba:trunk:source%2FappModules%2F_default.py 
         2user_docs/whats%20new.txt       559@dbe06fc7-9119-0410-a01d-9dbf589ecbba:trunk:user_docs%2Fwhats%20new.txt 
  • trunk/source/appModules/_default.py

    r2422 r2424  
    637637                        if not isinstance(title,basestring) or not title or title.isspace(): 
    638638                                title=_("no title") 
    639                 speech.speakMessage(title) 
    640         script_title.__doc__=_("Reports the title of the current application or foreground window") 
     639                repeatCount=scriptHandler.getLastScriptRepeateCount() 
     640                if repeatCount==0: 
     641                        speech.speakMessage(title) 
     642                elif repeatCount==1: 
     643                        speech.speakSpelling(title) 
     644                else: 
     645                        if api.copyToClip(title): 
     646                                speech.speakMessage(_("%s copied to clipboard")%title) 
     647        script_title.__doc__=_("Reports the title of the current application or foreground window. If pressed twice, spells the title. If pressed thrice, copies the title to the clipboard") 
    641648 
    642649        def script_speakForeground(self,keyPress): 
  • trunk/user_docs/whats new.txt

    r2414 r2424  
    2929* fix: Say all should now work correctly with the sapi4activeVoice driver. 
    3030* fix: Fixed an issue which meant that text selection changes were not being read in Windows standard edit controls before the first focus change after NVDA was started. 
     31* change: The title command (NVDA+t) now only reports the title instead of the entire object. If the foreground object has no name, the application's process name is used. 
     32* new: If the title command (NVDA+t) is pressed twice, it spells the title. If pressed thrice, it is copied to the clipboard. 
    3133 
    3234