From 98754a3cb38c8ae789c11e76a9bd3811674cd4fe Mon Sep 17 00:00:00 2001 From: Tristan Simas Date: Mon, 16 Nov 2026 16:11:55 -0500 Subject: [PATCH] KeymapClaim is declared here: a default key claim with its invocation The record moves from the Textual fork's binding.py; reading claims out of a toolkit's bindings stays with the toolkit. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016gZLdupVQyBzHTmHBC9Cyn --- src/formbridge/key_declarations.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/formbridge/key_declarations.py b/src/formbridge/key_declarations.py index 3f63b81..e78f461 100644 --- a/src/formbridge/key_declarations.py +++ b/src/formbridge/key_declarations.py @@ -323,3 +323,11 @@ class SharedKeyPreference(KeyPreference): def preference_identity(self, mode: type[InputMode]) -> str | None: return self.shared_identity(mode) + + +@dataclass(frozen=True) +class KeymapClaim: + """A detached default claim, with its original nominal invocation intact.""" + + invocation: KeyInvocation + keys: tuple[str, ...]