[orca] Attempt to identify and present clipboard events from web elements



commit 03219960738587747907c4d54a142f46a54f5936
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu Feb 25 01:47:28 2016 -0500

    Attempt to identify and present clipboard events from web elements

 src/orca/scripts/web/script_utilities.py |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index 7240708..443473c 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -2936,3 +2936,17 @@ class Utilities(script_utilities.Utilities):
                 messages.LINE_UNSELECTED_DOWN,
                 messages.LINE_SELECTED_UP,
                 messages.LINE_UNSELECTED_UP]
+
+    def lastInputEventWasCopy(self):
+        if super().lastInputEventWasCopy():
+            return True
+
+        if not self.inDocumentContent():
+            return False
+
+        if 'Action' in pyatspi.listInterfaces(orca_state.locusOfFocus):
+            msg = "WEB: Treating %s as source of copy" % orca_state.locusOfFocus
+            debug.println(debug.LEVEL_INFO, msg, True)
+            return True
+
+        return False


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]