updated keybindings.py
This commit is contained in:
parent
0edbefac47
commit
2eb6d3c7dd
@ -251,6 +251,23 @@ class KeyBinding:
|
|||||||
if not self.keycode:
|
if not self.keycode:
|
||||||
self.keycode = getKeycode(self.keysymstring)
|
self.keycode = getKeycode(self.keysymstring)
|
||||||
|
|
||||||
|
# Debug logging for DisplayVersion plugin specifically
|
||||||
|
if self.keysymstring == 'v' and self.modifiers == 257:
|
||||||
|
with open('/tmp/displayversion_matches.log', 'a') as f:
|
||||||
|
f.write(f"=== DisplayVersion matches() debug ===\n")
|
||||||
|
f.write(f"Self keycode: {self.keycode}\n")
|
||||||
|
f.write(f"Self keysymstring: {self.keysymstring}\n")
|
||||||
|
f.write(f"Self modifiers: {self.modifiers}\n")
|
||||||
|
f.write(f"Self modifier_mask: {self.modifier_mask}\n")
|
||||||
|
f.write(f"Input keycode: {keycode}\n")
|
||||||
|
f.write(f"Input modifiers: {modifiers}\n")
|
||||||
|
f.write(f"Keycode match: {self.keycode == keycode}\n")
|
||||||
|
if self.keycode == keycode:
|
||||||
|
result = modifiers & self.modifier_mask
|
||||||
|
f.write(f"Modifier calculation: {modifiers} & {self.modifier_mask} = {result}\n")
|
||||||
|
f.write(f"Modifier match: {result == self.modifiers}\n")
|
||||||
|
f.write(f"Overall match: {self.keycode == keycode and (modifiers & self.modifier_mask) == self.modifiers}\n")
|
||||||
|
|
||||||
if self.keycode == keycode:
|
if self.keycode == keycode:
|
||||||
result = modifiers & self.modifier_mask
|
result = modifiers & self.modifier_mask
|
||||||
return result == self.modifiers
|
return result == self.modifiers
|
||||||
|
Loading…
x
Reference in New Issue
Block a user