OSDN Git Service
(root)
/
nvdajp
/
nvdajp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
590c4b5
)
UIA focus event handler: return if obj is None after NVDAObject instanciation. The...
author
Michael Curran
<mick@kulgan.net>
Thu, 9 Jun 2011 07:37:50 +0000
(17:37 +1000)
committer
Michael Curran
<mick@kulgan.net>
Thu, 9 Jun 2011 07:37:50 +0000
(17:37 +1000)
source/_UIAHandler.py
patch
|
blob
|
history
diff --git
a/source/_UIAHandler.py
b/source/_UIAHandler.py
index
d5d9fbb
..
00928cc
100644
(file)
--- a/
source/_UIAHandler.py
+++ b/
source/_UIAHandler.py
@@
-175,6
+175,8
@@
class UIAHandler(COMObject):
if self.clientObject.compareElements(sender,lastFocus) and lastFocus.currentHasKeyboardFocus:
\r
return
\r
obj=NVDAObjects.UIA.UIA(UIAElement=sender)
\r
+ if not obj:
\r
+ return
\r
eventHandler.queueEvent("gainFocus",obj)
\r
\r
def IUIAutomationPropertyChangedEventHandler_HandlePropertyChangedEvent(self,sender,propertyId,newValue):
\r