Skip to content

Add docs/SHORTCUTS.md quick-reference card - #106

Merged
klh merged 1 commit into
masterfrom
agent/97
Nov 17, 2026
Merged

klh merged 1 commit into
masterfrom
agent/97

Conversation

@klh

@klh klh commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add docs/SHORTCUTS.md: a 39-line quick-reference card with one key/action/edge-case table.
  • Cover entry, error, and result modes; sign toggle, square root, repeated equals, Escape tiers, focus, and browser shortcut exclusions.
  • Documentation only; no dependencies or behavior changes.

Shipped behavior discrepancies

  • Issue #97 mentions m/mr/mc, but script.js implements no memory shortcuts and the README explicitly says there are none. The card marks these unsupported and points to M+/MR/MC buttons; an r within a typed sequence still invokes square root.
  • The older docs/KEYBOARD.md percent row describes division by 100. The new card follows the README, shipped code, and tests: %/k toggle sign. Existing guide changes are outside this single-file task.
  • These discrepancies were also recorded in an issue comment.

Validation

  • Read the README, real HTML/CSS, key handler, calculator methods, and keyboard/square-root/memory tests.
  • node --test (Node v26.13.1): 359 passed, 0 failed.
  • git diff origin/master --check: clean.
  • wc -l docs/SHORTCUTS.md: 39 (requested 30–60).

Closes #97

Copilot AI balanced review requested due to automatic review settings November 17, 2026 05:33

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the documentation-only keyboard shortcut reference.

No open issues 🎉

What changed in this PR

Adds a keyboard shortcut quick-reference card for the calculator, addressing issue #97 and documenting shipped behavior without changing functionality or dependencies.

Changes:

  • Provides one key/action/edge-case table covering entry, error, and result modes.
  • Summarizes repeated equals, square root, Escape tiers, focus handling, and browser shortcut exclusions.
  • Clarifies that %/k toggle sign and memory operations require the on-screen buttons.
File Description
docs/​SHORTCUTS.md Adds a 39-line shortcut reference with operating notes and links to implementation and tests.

Review effort: Balanced

@klh
klh merged commit 0013625 into master Nov 17, 2026
2 checks passed
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.

2 participants