Skip to content

Key identity comes from formbridge; keys.py is upstream again - #316

Merged
trissim merged 1 commit into
mainfrom
claude-a/generic-ui-move
Nov 16, 2026
Merged

trissim merged 1 commit into
mainfrom
claude-a/generic-ui-move

Conversation

@trissim

@trissim trissim commented Nov 16, 2026

Copy link
Copy Markdown

The engine renders; formbridge owns key identity (OpenHCSDev/formbridge#25).

  • keys.py back to upstream: its fork diff goes from +125 to 0. DeclaredKey, UndecodedKey, NavigationKey and the arrow keys with hjkl are now formbridge.key_declarations.
  • BindingDeclaration (the Textual projection of a key declaration) moves into binding.py beside CommandBinding; dom.py and navigation.py import it from there.
  • EditingMode and VimMode lose their navigation_spellings copies; InputMode/ModalInputMode answer.
  • Screen.dispatch_remapped_key works out 'printable, and the target doesn't take typed text' once per key and hands it to preempts.
  • pyproject.toml: formbridge joins the dependencies beside metaclass-registry (same git-main form as AbstractHooksMeta comes from metaclass_registry; Textual's copy is deleted #313).
  • Every metaclass_registry.key_declarations and textual.keys arrow import repointed.

Checks: tests naming the moved names (test_navigation_spellings, test_input_key_movement_actions, test_edit_via_bindings) 118 passed. Bindings for every DOM context in every key mode (EditingMode, VimMode, Toad's four modes), plus ToadApp's, 20,058 lines: identical before and after apart from the expected textual.keys. to formbridge.key_declarations. identity rename.

Saved keymaps: Toad rows naming textual.keys.UpKey and friends are carried by OpenHCSDev/agent-comms' new toad_formbridge_arrow_keys step.

🤖 Generated with Claude Code

https://claude.ai/code/session_016gZLdupVQyBzHTmHBC9Cyn

DeclaredKey, NavigationKey and the arrow keys (hjkl included) leave keys.py for
formbridge.key_declarations; BindingDeclaration, the Textual projection, moves into
binding.py beside CommandBinding. EditingMode and VimMode drop their
navigation_spellings copies; the InputMode family answers. Screen computes
'printable outside text input' once per key instead of per binding. formbridge
joins the declared dependencies beside metaclass-registry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016gZLdupVQyBzHTmHBC9Cyn
@trissim
trissim marked this pull request as ready for review November 16, 2026 20:31
@trissim
trissim merged commit c07a651 into main Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant