[orca] Chromim: Remove hack for lack of object:state-changed:focused event
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Chromim: Remove hack for lack of object:state-changed:focused event
- Date: Mon, 14 Jan 2019 16:30:32 +0000 (UTC)
commit bc09923791ca47d7f06873fbe4659650692ee01d
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Jan 14 11:29:54 2019 -0500
Chromim: Remove hack for lack of object:state-changed:focused event
src/orca/scripts/toolkits/Chromium/script.py | 17 -----------------
1 file changed, 17 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Chromium/script.py b/src/orca/scripts/toolkits/Chromium/script.py
index c786cbb15..d38040d4b 100644
--- a/src/orca/scripts/toolkits/Chromium/script.py
+++ b/src/orca/scripts/toolkits/Chromium/script.py
@@ -130,23 +130,6 @@ class Script(web.Script):
debug.println(debug.LEVEL_INFO, msg, True)
default.Script.onActiveChanged(self, event)
- # HACK: Remove this once Chromium emits focus changes after window activation.
- if event.detail1 and role == pyatspi.ROLE_FRAME:
- startTime = time.time()
- focusedObject = self.utilities.focusedObject(event.source)
- msg = "CHROMIUM: NO INITIAL FOCUS HACK. Focused object: %s - %.4fs" % \
- (focusedObject, time.time()-startTime)
- debug.println(debug.LEVEL_INFO, msg, True)
-
- if self.utilities.isDocument(focusedObject) \
- and not self.utilities.documentFrameURI(focusedObject):
- msg = "CHROMIUM: Ignoring focused object (document with no URI)."
- debug.println(debug.LEVEL_INFO, msg, True)
- return
-
- if focusedObject:
- orca.setLocusOfFocus(event, focusedObject)
-
def onActiveDescendantChanged(self, event):
"""Callback for object:active-descendant-changed accessibility events."""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]