~stomato463/+junk/nvdajp

« back to all changes in this revision

Viewing changes to source/appModules/securecrt.py

  • Committer: Masataka Shinke
  • Date: 2011-10-25 12:35:26 UTC
  • mfrom: (4185 jpmain)
  • mto: This revision was merged to the branch mainline in revision 4211.
  • Revision ID: mshinke@users.sourceforge.jp-20111025123526-ze527a2rl3z0g2ky
lp:~nishimotz/nvdajp/main : 4185 をマージ

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#appModules/securecrt.py
 
2
#A part of NonVisual Desktop Access (NVDA)
 
3
#This file is covered by the GNU General Public License.
 
4
#See the file COPYING for more details.
 
5
#Copyright (C) 2010 James Teh <jamie@jantrid.net>
 
6
 
 
7
"""App module for SecureCRT
 
8
"""
 
9
 
 
10
import oleacc
 
11
from NVDAObjects.behaviors import Terminal
 
12
from NVDAObjects.window import DisplayModelEditableText, DisplayModelLiveText
 
13
import appModuleHandler
 
14
 
 
15
class AppModule(appModuleHandler.AppModule):
 
16
 
 
17
        def chooseNVDAObjectOverlayClasses(self, obj, clsList):
 
18
                if obj.windowClassName == "AfxFrameOrView90u" and obj.IAccessibleRole == oleacc.ROLE_SYSTEM_CLIENT:
 
19
                        try:
 
20
                                clsList.remove(DisplayModelEditableText)
 
21
                        except ValueError:
 
22
                                pass
 
23
                        clsList[0:0] = (Terminal, DisplayModelLiveText)