[orca] capslock locking: Fix debugging statements



commit cf75ce968ad9d40fc0eac5a8980cb49922fc36bb
Author: Samuel Thibault <samuel thibault ens-lyon org>
Date:   Tue Nov 2 10:56:59 2021 +0100

    capslock locking: Fix debugging statements
    
    They were reversed

 src/orca/input_event.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/input_event.py b/src/orca/input_event.py
index 24cc9abca..e72244cea 100644
--- a/src/orca/input_event.py
+++ b/src/orca/input_event.py
@@ -942,10 +942,10 @@ class KeyboardEvent(InputEvent):
                 try:
                     if modifiers & modifier:
                         lock = pyatspi.KEY_UNLOCKMODIFIERS
-                        debug.println(debug.LEVEL_INFO, "Locking capslock", True)
+                        debug.println(debug.LEVEL_INFO, "Unlocking capslock", True)
                     else:
                         lock = pyatspi.KEY_LOCKMODIFIERS
-                        debug.println(debug.LEVEL_INFO, "Unlocking capslock", True)
+                        debug.println(debug.LEVEL_INFO, "Locking capslock", True)
                     pyatspi.Registry.generateKeyboardEvent(modifier, None, lock)
                     debug.println(debug.LEVEL_INFO, "Done with capslock", True)
                 except:


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