Getting closer to working bindings.
This commit is contained in:
parent
39dca0574a
commit
c376b2489a
@ -103,17 +103,17 @@ class APIHelper:
|
|||||||
# Store binding for later reference
|
# Store binding for later reference
|
||||||
if contextName not in self._gestureBindings:
|
if contextName not in self._gestureBindings:
|
||||||
self._gestureBindings[contextName] = []
|
self._gestureBindings[contextName] = []
|
||||||
self._gestureBindings[contextName].append(binding)
|
self._gestureBindings[contextName].append(binding) # This line should be outside the if block
|
||||||
|
|
||||||
# Register key grab at the system level
|
# Register key grab at the system level
|
||||||
grab_ids = self.app.addKeyGrab(binding)
|
grab_ids = self.app.addKeyGrab(binding)
|
||||||
|
|
||||||
# For later removal
|
# For later removal
|
||||||
if grab_ids:
|
if grab_ids:
|
||||||
binding._grab_ids = grab_ids
|
binding._grab_ids = grab_ids
|
||||||
|
|
||||||
logger.info(f"Created binding: {binding.keysymstring} with modifiers {binding.modifiers}")
|
logger.info(f"Created binding: {binding.keysymstring} with modifiers {binding.modifiers}")
|
||||||
return binding
|
return binding
|
||||||
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
@ -23,5 +23,5 @@
|
|||||||
# Fork of Orca Screen Reader (GNOME)
|
# Fork of Orca Screen Reader (GNOME)
|
||||||
# Original source: https://gitlab.gnome.org/GNOME/orca
|
# Original source: https://gitlab.gnome.org/GNOME/orca
|
||||||
|
|
||||||
version = "2025.04.19"
|
version = "2025.04.20"
|
||||||
codeName = "plugins"
|
codeName = "plugins"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user