[orca] Fix for Bug 665586 - Orca does not present the selected menu/menu item for Dojo widgets in WebKitGtk
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix for Bug 665586 - Orca does not present the selected menu/menu item for Dojo widgets in WebKitGtk
- Date: Mon, 5 Dec 2011 11:19:43 +0000 (UTC)
commit caa726f684cc201b87e28ff8a8f79be18cbe264b
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Dec 5 12:19:20 2011 +0100
Fix for Bug 665586 - Orca does not present the selected menu/menu item for Dojo widgets in WebKitGtk content
src/orca/scripts/toolkits/WebKitGtk/script.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/WebKitGtk/script.py b/src/orca/scripts/toolkits/WebKitGtk/script.py
index fb08eaa..7e42cbd 100644
--- a/src/orca/scripts/toolkits/WebKitGtk/script.py
+++ b/src/orca/scripts/toolkits/WebKitGtk/script.py
@@ -276,6 +276,12 @@ class Script(default.Script):
if role == pyatspi.ROLE_LIST_ITEM and obj.childCount:
return
+ widgetRoles = [pyatspi.ROLE_MENU,
+ pyatspi.ROLE_MENU_ITEM]
+ if role in widgetRoles:
+ default.Script.onFocus(self, event)
+ return
+
textRoles = [pyatspi.ROLE_HEADING,
pyatspi.ROLE_PANEL,
pyatspi.ROLE_PARAGRAPH,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]