Revert deliberate test fail

Wasn't that.
This commit is contained in:
Dave Pearson
2022-12-15 13:53:20 +00:00
parent 32d3fc054a
commit f2db3f345c

View File

@@ -1742,10 +1742,9 @@ 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 self._binding_chain:
for namespace, bindings in (
list(reversed(self._binding_chain)) if priority else 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)