Fix broken method.

This commit is contained in:
Storm Dragon 2025-04-19 14:15:30 -04:00
parent 1e6f4b8913
commit 3296e5d571

View File

@ -45,8 +45,6 @@ from . import settings
from . import cthulhu_state from . import cthulhu_state
from .cthulhu_i18n import _ from .cthulhu_i18n import _
import logging
logger = logging.getLogger(__name__)
_keysymsCache = {} _keysymsCache = {}
_keycodeCache = {} _keycodeCache = {}
@ -472,8 +470,10 @@ class KeyBindings:
given keycode and modifiers, or None if no match exists. given keycode and modifiers, or None if no match exists.
""" """
import logging
logger = logging.getLogger(__name__)
logger.info(f"Looking for handler for key: {keyboardEvent.hw_code} with modifiers {keyboardEvent.modifiers}") logger.info(f"Looking for handler for key: {keyboardEvent.hw_code} with modifiers {keyboardEvent.modifiers}")
return binding
matches = [] matches = []
candidates = [] candidates = []
clickCount = keyboardEvent.getClickCount() clickCount = keyboardEvent.getClickCount()