[orca] Fix for Orca skipping over WebKitGtk list items when scrolling in braille.
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix for Orca skipping over WebKitGtk list items when scrolling in braille.
- Date: Sun, 12 Aug 2012 20:26:14 +0000 (UTC)
commit 58d81eb270967494b605a6c571f7d44a5ed24175
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Sun Aug 12 16:24:34 2012 -0400
Fix for Orca skipping over WebKitGtk list items when scrolling in braille.
.../scripts/toolkits/WebKitGtk/script_utilities.py | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/WebKitGtk/script_utilities.py b/src/orca/scripts/toolkits/WebKitGtk/script_utilities.py
index bc8a2b5..c6a71c0 100644
--- a/src/orca/scripts/toolkits/WebKitGtk/script_utilities.py
+++ b/src/orca/scripts/toolkits/WebKitGtk/script_utilities.py
@@ -177,12 +177,16 @@ class Utilities(script_utilities.Utilities):
index = obj.getIndexInParent() - 1
if not (0 <= index < obj.parent.childCount - 1):
obj = obj.parent
- index = obj.childCount - 1
+ index = obj.getIndexInParent() - 1
try:
prevObj = obj.parent[index]
except:
prevObj = obj
+ else:
+ if prevObj.getRole() == pyatspi.ROLE_LIST and prevObj.childCount:
+ if self.isTextListItem(prevObj[0]):
+ prevObj = prevObj[-1]
return prevObj
@@ -204,6 +208,10 @@ class Utilities(script_utilities.Utilities):
nextObj = obj.parent[index]
except:
nextObj = None
+ else:
+ if nextObj.getRole() == pyatspi.ROLE_LIST and nextObj.childCount:
+ if self.isTextListItem(nextObj[0]):
+ nextObj = nextObj[0]
return nextObj
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]