[orca] Filter out more duplicate input events



commit 82022b2904383da81c3e6efbdb9e7cfd2a070ff7
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu May 26 23:10:43 2016 -0400

    Filter out more duplicate input events

 src/orca/input_event.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/input_event.py b/src/orca/input_event.py
index 722eb4e..76c1785 100644
--- a/src/orca/input_event.py
+++ b/src/orca/input_event.py
@@ -95,7 +95,8 @@ class KeyboardEvent(InputEvent):
         self.keyval_name = ""
         self.is_text = event.is_text
         self.timestamp = event.timestamp
-        self.is_duplicate = self == orca_state.lastInputEvent
+        self.is_duplicate = self in [orca_state.lastInputEvent,
+                                     orca_state.lastNonModifierKeyEvent]
         self._script = orca_state.activeScript
         self._app = None
         self._window = orca_state.activeWindow


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