Skip to content

Add hold-key / auto-repeat key input#329

Merged
JE-Chen merged 2 commits into
devfrom
feat/key-hold-batch
Jun 22, 2026
Merged

Add hold-key / auto-repeat key input#329
JE-Chen merged 2 commits into
devfrom
feat/key-hold-batch

Conversation

@JE-Chen

@JE-Chen JE-Chen commented Jun 22, 2026

Copy link
Copy Markdown
Member

Summary

Round-11, automation-core. type_keyboard is an instant down+up — there was no "hold this key for N seconds" (game movement, hold-to-scroll) or "send it at R presses/second" (auto-repeat).

Layers

  • Headless core: je_auto_control/utils/key_hold/key_hold.pyplan_key_hold (pure op-plan: press/wait/release, or N spaced key events for rate_hz), hold_key (routes waits to injectable sleep, keys to injectable sink). No PySide6.
  • Facade: both re-exported + __all__.
  • Executor: AC_hold_key.
  • MCP: ac_hold_key (SIDE_EFFECT_ONLY).
  • Script Builder: one CommandSpec under Keyboard.

Tests / docs

  • test/unit_test/headless/test_key_hold_batch.py — 8 headless tests (hold plan, repeat N events + interval, count clamp, sink/sleep routing, validation + wiring + facade). No real input/waiting.
  • EN/Zh feature docs v119_features_doc.rst + toctrees; 3 WHATS_NEW entries.

Note: Codacy may show action_required from its coverage gate only (issues=0); SonarCloud + all GitHub Actions are the substantive gates.

@codacy-production

codacy-production Bot commented Jun 22, 2026

Copy link
Copy Markdown

Not up to standards ⛔

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@JE-Chen JE-Chen merged commit 1d25dc9 into dev Jun 22, 2026
15 of 16 checks passed
@JE-Chen JE-Chen deleted the feat/key-hold-batch branch June 22, 2026 17:04
@sonarqubecloud

Copy link
Copy Markdown

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