Revert to a deliberate priority binding lookup fail

Just for the moment; just to see if I can get this to fail normally in CI.
This commit is contained in:
Dave Pearson
2022-12-15 13:47:17 +00:00
parent 0e89e88943
commit 32d3fc054a

View File

@@ -1742,9 +1742,10 @@ class App(Generic[ReturnType], DOMNode):
bool: True if the key was handled by a binding, otherwise False
"""
for namespace, bindings in (
list(reversed(self._binding_chain)) if priority else self._binding_chain
):
# for namespace, bindings in (
# list(reversed(self._binding_chain)) if priority else self._binding_chain
# ):
for namespace, bindings in self._binding_chain:
binding = bindings.keys.get(key)
if binding is not None and binding.priority == priority:
await self.action(binding.action, default_namespace=namespace)