OMG it actually works! Just some finishing touches.
This commit is contained in:
@@ -520,7 +520,7 @@ class KeyBindings:
|
|||||||
if keyBinding.matches(keyboardEvent.hw_code, keyboardEvent.modifiers):
|
if keyBinding.matches(keyboardEvent.hw_code, keyboardEvent.modifiers):
|
||||||
if event_str.lower() == 'v':
|
if event_str.lower() == 'v':
|
||||||
logger.info(f"MATCH found! keysym={keyBinding.keysymstring}, desc={keyBinding.handler.description}")
|
logger.info(f"MATCH found! keysym={keyBinding.keysymstring}, desc={keyBinding.handler.description}")
|
||||||
if keyBinding.modifier_mask == keyboardEvent.modifiers and \
|
if (keyboardEvent.modifiers & keyBinding.modifier_mask) == keyBinding.modifiers and \
|
||||||
keyBinding.click_count == clickCount:
|
keyBinding.click_count == clickCount:
|
||||||
matches.append(keyBinding)
|
matches.append(keyBinding)
|
||||||
# If there's no keysymstring, it's unbound and cannot be
|
# If there's no keysymstring, it's unbound and cannot be
|
||||||
|
|||||||
Reference in New Issue
Block a user