Skip to content

Keybinds 4/4: remove the document-level key listener and verify the help panel #40

Closed

Description

@cchacs

Part of #10. Last: depends on Keybinds 2/4 and 3/4.

Scope

  • Remove the now-empty onKeyDown document-level listener (or keep only branches that genuinely cannot be shortcuts, and say why).
  • Verify in the running app that every editor shortcut appears in the ? help panel with a sensible description and scope.
  • Update CLAUDE.md/docs if they describe the old listener.

Acceptance criteria

Out of scope

New shortcuts.

Activity

  1. pullfrog commented on Oct 2, 2026

    @pullfrog
  2. pullfrog commented on Oct 9, 2026

    @pullfrog

    Implemented #39 (register Space/Escape with the Host shortcut service) as the prerequisite for #40, reduced onKeyDown to the gates that cannot be shortcuts plus an inert fallback that stands down once the registry is active, and extended tests/keybind_registration.test.mjs. A self-review caught four real issues (Space key-token mismatch, other Escape owners left unguarded, a dropped parts-view guard, and no no-double-handling test) — all fixed. node --test 400 pass, eslint 0 errors. PR: #66 (closes #39, #40).

    Task list (2/9 completed)
    • Create branch pullfrog/40-remove-document-key-listener
    • Extract _editorEscape + _editorTogglePlayShortcut in src/input.js (M1)
    • Rewire onKeyDown to shared handlers, stand down when registered (M1/M3)
    • Register Space + Escape in src/shortcut-registry.js (M2)
    • Update main.js/shortcut-registry comments for Keybinds 4/4: remove the document-level key listener and verify the help panel #40
    • Extend tests/keybind_registration.test.mjs for Space/Escape (M4)
    • Add CHANGELOG entry (M5)
    • Run node --test + eslint
    • Self-review with reviewfrog, commit, push, open PR

    Pullfrog  | View workflow run | via Pullfrog | Using big-pickle (free) | 𝕏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions