From 0b002e6f6087e6190c19da36b836f67a7fbeeb51 Mon Sep 17 00:00:00 2001 From: Tristan Simas Date: Mon, 16 Nov 2026 16:08:52 -0500 Subject: [PATCH] Read DOM contexts through DOMNode.descendants() The keymap catalog's one caller of the deleted DOMNode.contexts reads descendants(). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016gZLdupVQyBzHTmHBC9Cyn --- src/toad/keymap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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