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>
8
import appModuleHandler
10
class AppModule(appModuleHandler.AppModule):
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