diff --git a/src/toad/keymap.py b/src/toad/keymap.py index 826646738..33219b748 100644 --- a/src/toad/keymap.py +++ b/src/toad/keymap.py @@ -116,7 +116,7 @@ def capture(cls, modes: tuple[type[KeyMode], ...]) -> KeymapCatalog: """The catalog of the classes declared now. Reading those declarations is a class walk; building their bindings is not, so it runs once per distinct set of declarations.""" discover() - return cls.of(tuple(modes), DOMNode.contexts(), tuple(ApplicationAction.declarations())) + return cls.of(tuple(modes), DOMNode.descendants(), tuple(ApplicationAction.declarations())) @classmethod @cache