[orca] Add some debugging lines



commit f7b2f74788f6a5342c22fe335e0366d6fa71dab3
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu Jul 26 16:35:00 2018 -0400

    Add some debugging lines

 src/orca/input_event.py | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/src/orca/input_event.py b/src/orca/input_event.py
index fe8892ba8..dfe93a68f 100644
--- a/src/orca/input_event.py
+++ b/src/orca/input_event.py
@@ -721,9 +721,16 @@ class KeyboardEvent(InputEvent):
         debug.println(debug.LEVEL_INFO, msg, False)
 
         if self._consumer:
+            msg = 'INFO: Consumer is %s' % self._consumer.__name__
+            debug.println(debug.LEVEL_INFO, msg, True)
             self._consumer(self)
         elif self._handler.function:
+            msg = 'INFO: Handler is %s' % self._handler.description
+            debug.println(debug.LEVEL_INFO, msg, True)
             self._handler.function(self._script, self)
+        else:
+            msg = 'INFO: No handler or consumer'
+            debug.println(debug.LEVEL_INFO, msg, True)
 
         msg = 'TOTAL PROCESSING TIME: %.4f' % (time.time() - startTime)
         debug.println(debug.LEVEL_INFO, msg, True)


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