~stomato463/+junk/nvdajp

« back to all changes in this revision

Viewing changes to source/appModules/eclipse.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/eclipse.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
import controlTypes
 
8
import appModuleHandler
 
9
 
 
10
class AppModule(appModuleHandler.AppModule):
 
11
 
 
12
        def event_NVDAObject_init(self, obj):
 
13
                if obj.windowClassName == "SysTreeView32" and obj.role == controlTypes.ROLE_TREEVIEWITEM and controlTypes.STATE_FOCUSED not in obj.states:
 
14
                        # Eclipse tree views seem to fire a focus event on the previously focused item before firing focus on the new item (EclipseBug:315339).
 
15
                        # Try to filter this out.
 
16
                        obj.shouldAllowIAccessibleFocusEvent = False