[orca] Don't treat insertions as auto-text events if the source is no longer focused
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Don't treat insertions as auto-text events if the source is no longer focused
- Date: Tue, 14 Feb 2017 09:27:59 +0000 (UTC)
commit 7bc093a88c384934008cc435dd44d13cc303ef50
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Feb 14 04:26:57 2017 -0500
Don't treat insertions as auto-text events if the source is no longer focused
src/orca/script_utilities.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index f9dd001..72c9b84 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -2944,6 +2944,11 @@ class Utilities:
return False
if not state.contains(pyatspi.STATE_SHOWING):
return False
+ if state.contains(pyatspi.STATE_FOCUSABLE):
+ event.source.clearCache()
+ state = event.source.getState()
+ if not state.contains(pyatspi.STATE_FOCUSED):
+ return False
lastKey, mods = self.lastKeyAndModifiers()
if lastKey == "Tab" and event.any_data != "\t":
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]