[orca] Try harder to position the caret when jumping to an object in the navlist
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Try harder to position the caret when jumping to an object in the navlist
- Date: Mon, 11 Feb 2013 16:13:15 +0000 (UTC)
commit b4ec934ff38d0eac7abf6c3e26dc012c56c9dc89
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Feb 11 11:12:34 2013 -0500
Try harder to position the caret when jumping to an object in the navlist
src/orca/orca_gui_navlist.py | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/orca_gui_navlist.py b/src/orca/orca_gui_navlist.py
index 0d68b17..940b0bd 100644
--- a/src/orca/orca_gui_navlist.py
+++ b/src/orca/orca_gui_navlist.py
@@ -143,7 +143,15 @@ class OrcaNavListGUI:
text = obj.queryText()
text.setCaretOffset(0)
except NotImplementedError:
- pass
+ while obj.childCount:
+ obj = obj[0]
+ try:
+ text = obj.queryText()
+ text.setCaretOffset(0)
+ except NotImplementedError:
+ pass
+ else:
+ break
def _onActivateClicked(self, widget):
obj = self._getSelectedAccessible()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]