[orca] Fix restoration of location when returning to nested document after find in page
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix restoration of location when returning to nested document after find in page
- Date: Fri, 18 Mar 2016 22:07:32 +0000 (UTC)
commit c6652c8fec705c1dfe30f261dec21a8f36a809bc
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Mar 18 18:06:15 2016 -0400
Fix restoration of location when returning to nested document after find in page
src/orca/scripts/web/script.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index 8ad3fc2..caea621 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -1006,7 +1006,7 @@ class Script(default.Script):
oldFocus = None
caretOffset = 0
- if self.utilities.inFindToolbar(oldFocus):
+ if not oldFocus or self.utilities.inFindToolbar(oldFocus):
newFocus, caretOffset = self.utilities.getCaretContext()
if newFocus.getRole() == pyatspi.ROLE_UNKNOWN:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]