[orca] Fix for canvas items only giving us the deprecated focus: event
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix for canvas items only giving us the deprecated focus: event
- Date: Tue, 26 Nov 2013 13:47:12 +0000 (UTC)
commit fec64ab099b21f5577117861e98a4f7c1b591729
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Nov 26 08:46:36 2013 -0500
Fix for canvas items only giving us the deprecated focus: event
src/orca/scripts/toolkits/gtk/script.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/gtk/script.py b/src/orca/scripts/toolkits/gtk/script.py
index 426d460..cd1d823 100644
--- a/src/orca/scripts/toolkits/gtk/script.py
+++ b/src/orca/scripts/toolkits/gtk/script.py
@@ -95,6 +95,12 @@ class Script(default.Script):
orca.setLocusOfFocus(event, event.source)
return
+ # Unfiled. When a canvas item gets focus but is not selected, we
+ # are only getting a focus event. This happens in Nautilus.
+ if role == pyatspi.ROLE_CANVAS:
+ orca.setLocusOfFocus(event, event.source)
+ return
+
# Unfiled, but yet another case of only getting a focus: event when
# a widget appears in a parent container and is already focused.
# An example of this particular case is the list of elements dialogs.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]