[orca] Try to determine the focused object upon initial launch
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Try to determine the focused object upon initial launch
- Date: Thu, 5 Jul 2018 15:55:09 +0000 (UTC)
commit 17eb378f63ab0a0320f9eac582948298c7f2d8f2
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Jul 5 11:54:31 2018 -0400
Try to determine the focused object upon initial launch
src/orca/orca.py | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/orca/orca.py b/src/orca/orca.py
index e39b567a2..9d5789d24 100644
--- a/src/orca/orca.py
+++ b/src/orca/orca.py
@@ -716,6 +716,9 @@ def main(cacheValues=True):
script = _scriptManager.getScript(app, window)
_scriptManager.setActiveScript(script, "Launching.")
setLocusOfFocus(None, window)
+ focusedObject = script.utilities.focusedObject(window)
+ if focusedObject:
+ setLocusOfFocus(None, focusedObject)
try:
start(pyatspi.Registry, cacheValues) # waits until we stop the registry
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]