[orca] Prevent double-echoing of typed characters



commit 7bab532e3447270c2d50236bd0b9f735db7a2015
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Mon Jul 9 11:23:19 2018 -0400

    Prevent double-echoing of typed characters

 src/orca/scripts/terminal/script_utilities.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/scripts/terminal/script_utilities.py b/src/orca/scripts/terminal/script_utilities.py
index 6258a41db..961c6b254 100644
--- a/src/orca/scripts/terminal/script_utilities.py
+++ b/src/orca/scripts/terminal/script_utilities.py
@@ -192,8 +192,8 @@ class Utilities(script_utilities.Utilities):
                 return re.search(r"[^\d\s]", event.any_data)
             if mods & keybindings.ALT_MODIFIER_MASK:
                 return True
-            if len(event.any_data) > 1 and self.lastInputEventWasPrintableKey():
-                return True
+            if self.lastInputEventWasPrintableKey():
+                return len(event.any_data) > 1
             if self.insertionEndsAtCaret(event):
                 return True
 


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