[pyatspi2: 1/2] Fix default kind value for registerKeystrokeListener



commit fed06b27c429861fa409c196d35fea3f89bddb03
Author: Samuel Thibault <samuel thibault ens-lyon org>
Date:   Wed Feb 13 16:43:52 2019 +0100

    Fix default kind value for registerKeystrokeListener
    
    KEY_PRESSED_EVENT and KEY_RELEASED_EVENT are actually 0 and 1.

 pyatspi/registry.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pyatspi/registry.py b/pyatspi/registry.py
index 639b803..63e54c8 100644
--- a/pyatspi/registry.py
+++ b/pyatspi/registry.py
@@ -266,8 +266,8 @@ class Registry(object):
         # -------------------------------------------------------------------------------
 
         # TODO: Remove this hack
-        _KEY_PRESSED_EVENT=1
-        _KEY_RELEASED_EVENT=2
+        _KEY_PRESSED_EVENT=0
+        _KEY_RELEASED_EVENT=1
 
         def makeSyncType(self, synchronous, preemptive, global_):
                 result = Atspi.KeyListenerSyncType.NOSYNC


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