Skip to content

Hint key assignment, hint label choice and activation meaning are declared here - #28

Merged
trissim merged 1 commit into
mainfrom
claude-a/hint-activation-decisions
Nov 16, 2026
Merged

trissim merged 1 commit into
mainfrom
claude-a/hint-activation-decisions

Conversation

@trissim

@trissim trissim commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

The toolkit-free decisions behind click hints and activation move out of the Textual fork.

  • hint_keys.HintKeyAssignment: the alphabet and fixed-width key assignment from widgets/_hints.py:114-135, verbatim; Textual's HintSession inherits it.
  • hint_keys.HintLabelStyle, NextLetterHints, FullKeyHints: which part of a hint's key its label shows and how many characters are already typed (shown). Textual's hint_labels.py is deleted; HintLabel.caption renders the answer on Content. Toad's saved choice is stored by its declared name (full_key), so nothing carries.
  • activation.PrimaryEffect, ContextEffect: what activating a control runs. Textual's PrimaryActivation and ContextActivation inherit them and keep finding the click target.

Checks: toolkit guard passes; bindings dump identical; Textual hint tests 16 passed; Toad hint/activation tests pass except test_hints_reach_search_editor_disclosures_and_message_filters, which fails the same way on clean main.

🤖 Generated with Claude Code

https://claude.ai/code/session_016gZLdupVQyBzHTmHBC9Cyn

…lared here

HintKeyAssignment is the fork's HintSession alphabet and fixed-width key assignment,
verbatim. HintLabelStyle says which part of a key a label shows and how much of it is
typed; Textual renders that on its Content. PrimaryEffect and ContextEffect say what
activating a control runs; Textual keeps finding the click target.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016gZLdupVQyBzHTmHBC9Cyn
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