From 80212d616f5bf34d56e0c7786bdff462775e2ec5 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Fri, 18 Apr 2025 14:42:02 -0400 Subject: [PATCH] Added some logging to try and figure out what's going on. --- src/cthulhu/cthulhu.py | 1 + src/cthulhu/keybindings.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/cthulhu/cthulhu.py b/src/cthulhu/cthulhu.py index d88e58c..997fb12 100644 --- a/src/cthulhu/cthulhu.py +++ b/src/cthulhu/cthulhu.py @@ -115,6 +115,7 @@ class APIHelper: if grab_ids: binding._grab_ids = grab_ids + logger.info(f"Created binding: {binding.keysymstring} with modifiers {binding.modifiers}") return binding return None diff --git a/src/cthulhu/keybindings.py b/src/cthulhu/keybindings.py index ec578a2..f7ba3b0 100644 --- a/src/cthulhu/keybindings.py +++ b/src/cthulhu/keybindings.py @@ -470,6 +470,8 @@ class KeyBindings: given keycode and modifiers, or None if no match exists. """ + logger.info(f"Looking for handler for key: {keyboardEvent.hw_code} with modifiers {keyboardEvent.modifiers}") + return binding matches = [] candidates = [] clickCount = keyboardEvent.getClickCount()